()
| 170 | } |
| 171 | |
| 172 | override getModel(): { id: string; info: ModelInfo } { |
| 173 | const models = getModelsFromCache({ |
| 174 | provider: "lmstudio", |
| 175 | baseUrl: this.options.lmStudioBaseUrl, |
| 176 | }) |
| 177 | if (models && this.options.lmStudioModelId && models[this.options.lmStudioModelId]) { |
| 178 | return { |
| 179 | id: this.options.lmStudioModelId, |
| 180 | info: models[this.options.lmStudioModelId], |
| 181 | } |
| 182 | } else { |
| 183 | return { |
| 184 | id: this.options.lmStudioModelId || "", |
| 185 | info: openAiModelInfoSaneDefaults, |
| 186 | } |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | async completePrompt(prompt: string): Promise<string> { |
| 191 | try { |
no test coverage detected