MCPcopy Create free account
hub / github.com/anomalyco/opencode / loadFixture

Function loadFixture

packages/opencode/test/session/llm.test.ts:705–711  ·  view source on GitHub ↗
(providerID: string, modelID: string)

Source from the content-addressed store, hash-verified

703) as Record<string, ModelsDev.Provider>
704
705function loadFixture(providerID: string, modelID: string) {
706 const provider = MODELS_FIXTURE[providerID]
707 if (!provider) throw new Error(`Missing provider in fixture: ${providerID}`)
708 const model = provider.models[modelID]
709 if (!model) throw new Error(`Missing model in fixture: ${modelID}`)
710 return { provider, model }
711}
712
713function configModel(model: ModelsDev.Model) {
714 return {

Callers 1

llm.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected