MCPcopy Create free account
hub / github.com/anomalyco/opencode / inputLabel

Function inputLabel

packages/app/src/components/model-tooltip.tsx:39–46  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

37 return model.provider.name
38 }
39 const inputLabel = (value: string) => {
40 if (value === "text") return language.t("model.input.text")
41 if (value === "image") return language.t("model.input.image")
42 if (value === "audio") return language.t("model.input.audio")
43 if (value === "video") return language.t("model.input.video")
44 if (value === "pdf") return language.t("model.input.pdf")
45 return value
46 }
47 const title = () => {
48 const tags: Array<string> = []
49 if (props.latest) tags.push(language.t("model.tag.latest"))

Callers 1

inputsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected