* 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.
()
| 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. |
no test coverage detected