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

Method getModel

src/api/providers/mimo.ts:44–55  ·  view source on GitHub ↗

* Maps the configured model ID to its MiMo model info and parameters. * Falls back to the default model (mimo-v2.5-pro) if the stored ID * doesn't match any known model — this can happen when users manually * type a model name in settings.

()

Source from the content-addressed store, hash-verified

42 * type a model name in settings.
43 */
44 override getModel() {
45 const id = this.options.apiModelId ?? mimoDefaultModelId
46 const info: ModelInfo = mimoModels[id as keyof typeof mimoModels] || mimoModels[mimoDefaultModelId]
47 const params = getModelParams({
48 format: "openai",
49 modelId: id,
50 model: info,
51 settings: this.options,
52 defaultTemperature: MIMO_DEFAULT_TEMPERATURE,
53 })
54 return { id, info, ...params }
55 }
56
57 /**
58 * Streams a chat completion from MiMo's OpenAI-compatible API.

Callers 1

createMessageMethod · 0.95

Calls 1

getModelParamsFunction · 0.90

Tested by

no test coverage detected