()
| 27 | } |
| 28 | |
| 29 | override getModel() { |
| 30 | const id = this.options.apiModelId ?? moonshotDefaultModelId |
| 31 | const info = moonshotModels[id as keyof typeof moonshotModels] || moonshotModels[moonshotDefaultModelId] |
| 32 | const params = getModelParams({ |
| 33 | format: "openai", |
| 34 | modelId: id, |
| 35 | model: info, |
| 36 | settings: this.options, |
| 37 | defaultTemperature: 0, |
| 38 | }) |
| 39 | return { id, info, ...params } |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Override to handle Moonshot's usage metrics, including caching. |
nothing calls this directly
no test coverage detected