(requestId: string)
| 330 | } |
| 331 | |
| 332 | public async stopStreaming(requestId: string): Promise<void> { |
| 333 | const abortController = this.abortControllers.get(requestId) |
| 334 | const state = this.requestStates.get(requestId) |
| 335 | |
| 336 | if (state && state.status === 'running') { |
| 337 | state.status = 'aborted' |
| 338 | } |
| 339 | |
| 340 | if (abortController) { |
| 341 | abortController.abort() |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | public async testConnection(config: LLMConfig): Promise<{ success: boolean; error?: string }> { |
| 346 | try { |
no test coverage detected