()
| 80 | } |
| 81 | |
| 82 | async testConnection(): Promise<boolean> { |
| 83 | try { |
| 84 | const result = await window.api.ai.testConnection(this.llmConfig) |
| 85 | return result.success |
| 86 | } catch (error) { |
| 87 | console.error('Connection test failed:', error) |
| 88 | return false |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | static async getModels( |
| 93 | config: LLMConfig |