MCPcopy Index your code
hub / github.com/anomalyco/opencode / resolveModelVariant

Function resolveModelVariant

packages/app/src/context/model-variant.ts:31–36  ·  view source on GitHub ↗
(input: VariantInput)

Source from the content-addressed store, hash-verified

29}
30
31export function resolveModelVariant(input: VariantInput) {
32 if (input.selected === null) return undefined
33 if (input.selected && input.variants.includes(input.selected)) return input.selected
34 if (input.configured && input.variants.includes(input.configured)) return input.configured
35 return undefined
36}
37
38export function cycleModelVariant(input: VariantInput) {
39 if (input.variants.length === 0) return undefined

Callers 2

currentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected