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

Method fetchModel

src/api/providers/native-ollama.ts:337–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

335 }
336
337 async fetchModel() {
338 this.models = await getOllamaModels(this.options.ollamaBaseUrl, this.options.ollamaApiKey)
339 return this.getModel()
340 }
341
342 override getModel(): { id: string; info: ModelInfo } {
343 const modelId = this.options.ollamaModelId || ""

Callers 2

createMessageMethod · 0.95
completePromptMethod · 0.95

Calls 2

getModelMethod · 0.95
getOllamaModelsFunction · 0.90

Tested by

no test coverage detected