MCPcopy
hub / github.com/anomalyco/opencode / getModel

Function getModel

packages/opencode/src/provider/provider.ts:205–207  ·  view source on GitHub ↗
(sdk: any, modelID: string, _options?: Record<string, any>)

Source from the content-addressed store, hash-verified

203 Effect.succeed({
204 autoload: false,
205 async getModel(sdk: any, modelID: string, _options?: Record<string, any>) {
206 return sdk.responses(modelID)
207 },
208 options: { headerTimeout: OPENAI_HEADER_TIMEOUT_DEFAULT },
209 }),
210 xai: () =>

Callers 2

prompt.tsFile · 0.85
provider.tsFile · 0.85

Calls 6

selectAzureLanguageModelFunction · 0.85
sdkFunction · 0.85
responsesMethod · 0.80
languageModelMethod · 0.80
chatMethod · 0.80

Tested by

no test coverage detected