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

Function resolve

packages/core/src/session/runner/model.ts:172–173  ·  view source on GitHub ↗
(session: SessionSchema.Info, model: ModelV2.Info, credential?: Credential.Value)

Source from the content-addressed store, hash-verified

170}
171
172export const resolve = (session: SessionSchema.Info, model: ModelV2.Info, credential?: Credential.Value) =>
173 withVariant(model, session.model?.variant).pipe(Effect.flatMap((model) => fromCatalogModel(model, credential)))
174
175export const supported = (model: ModelV2.Info) =>
176 model.api.type === "aisdk" &&

Callers 1

model.tsFile · 0.70

Calls 2

withVariantFunction · 0.85
fromCatalogModelFunction · 0.85

Tested by

no test coverage detected