()
| 106 | } |
| 107 | |
| 108 | async listModels(): Promise<ModelChoice[]> { |
| 109 | const models = await Cursor.models.list({ apiKey: this.apiKey }) |
| 110 | const choices = disambiguateGlobalDuplicateLabels( |
| 111 | dedupeModelChoices(models.flatMap(modelToChoices)) |
| 112 | ) |
| 113 | |
| 114 | return choices.length > 0 |
| 115 | ? choices |
| 116 | : [{ label: this.modelSelection.id, value: this.modelSelection }] |
| 117 | } |
| 118 | |
| 119 | async reset() { |
| 120 | await this.replaceAgent() |
no test coverage detected