()
| 270 | } |
| 271 | |
| 272 | getModel() { |
| 273 | const modelId = this.options.apiModelId |
| 274 | const id = modelId && modelId in minimaxModels ? (modelId as MinimaxModelId) : minimaxDefaultModelId |
| 275 | const info = minimaxModels[id] |
| 276 | |
| 277 | const params = getModelParams({ |
| 278 | format: "anthropic", |
| 279 | modelId: id, |
| 280 | model: info, |
| 281 | settings: this.options, |
| 282 | defaultTemperature: 1.0, |
| 283 | }) |
| 284 | |
| 285 | return { |
| 286 | id, |
| 287 | info, |
| 288 | ...params, |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | async completePrompt(prompt: string) { |
| 293 | const { id: model, temperature } = this.getModel() |
no test coverage detected