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

Function inputs

packages/app/src/components/model-tooltip.tsx:54–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 return `${sourceName(props.model)} ${props.model.name}${suffix}`
53 }
54 const inputs = () => {
55 if (props.model.capabilities) {
56 const input = props.model.capabilities.input
57 const order: Array<InputKey> = ["text", "image", "audio", "video", "pdf"]
58 const entries = order.filter((key) => input[key]).map((key) => inputLabel(key))
59 return entries.length ? entries.join(", ") : undefined
60 }
61 const raw = props.model.modalities?.input
62 if (!raw) return
63 const entries = raw.map((value) => inputLabel(value))
64 return entries.length ? entries.join(", ") : undefined
65 }
66 const reasoning = () => {
67 if (props.model.capabilities)
68 return props.model.capabilities.reasoning

Callers 1

ModelTooltipFunction · 0.85

Calls 1

inputLabelFunction · 0.70

Tested by

no test coverage detected