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

Function modelKey

packages/opencode/src/cli/cmd/run/variant.shared.ts:35–37  ·  view source on GitHub ↗
(provider: string, model: string)

Source from the content-addressed store, hash-verified

33class Service extends Context.Service<Service, VariantService>()("@opencode/RunVariant") {}
34
35function modelKey(provider: string, model: string): string {
36 return `${provider}/${model}`
37}
38
39function variantKey(model: NonNullable<RunInput["model"]>): string {
40 return modelKey(model.providerID, model.modelID)

Callers 1

variantKeyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected