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

Function variantsFor

packages/opencode/src/cli/cmd/run/runtime.ts:147–153  ·  view source on GitHub ↗
(providers: RunProvider[], model: RunInput["model"])

Source from the content-addressed store, hash-verified

145}
146
147function variantsFor(providers: RunProvider[], model: RunInput["model"]) {
148 if (!model) {
149 return []
150 }
151
152 return Object.keys(providers.find((item) => item.id === model.providerID)?.models?.[model.modelID]?.variants ?? {})
153}
154
155const RESIZE_DELAY = 250
156const LOCAL_REPLAY_ROW_LIMIT = 100

Callers 1

runInteractiveRuntimeFunction · 0.85

Calls 1

findMethod · 0.65

Tested by

no test coverage detected