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

Function pickVariant

packages/opencode/src/cli/cmd/run/variant.shared.ts:78–80  ·  view source on GitHub ↗
(model: RunInput["model"], input: RunSession | SessionMessages)

Source from the content-addressed store, hash-verified

76}
77
78export function pickVariant(model: RunInput["model"], input: RunSession | SessionMessages): string | undefined {
79 return sessionVariant(Array.isArray(input) ? createSession(input) : input, model)
80}
81
82function fitVariant(value: string | undefined, variants: string[]): string | undefined {
83 if (!value) {

Callers 2

runtime.boot.tsFile · 0.90

Calls 2

sessionVariantFunction · 0.90
createSessionFunction · 0.90

Tested by

no test coverage detected