MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / fetchModel

Function fetchModel

src/api/providers/router-provider.ts:59–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 }
58
59 public async fetchModel() {
60 this.models = await getModels({ provider: this.name, apiKey: this.client.apiKey, baseUrl: this.client.baseURL })
61 return this.getModel()
62 }
63
64 override getModel(): { id: string; info: ModelInfo } {
65 // Use `||` (not `??`) so an empty-string modelId also falls back to the default,

Callers

nothing calls this directly

Calls 2

getModelsFunction · 0.90
getModelMethod · 0.65

Tested by

no test coverage detected