()
| 420 | |
| 421 | // ---------------- Models ---------------- |
| 422 | async getModels(): Promise<ModelsResponse> { |
| 423 | const resp = await fetch(`${API_BASE_URL}/models`); |
| 424 | if (!resp.ok) { |
| 425 | throw new Error(`Failed to fetch models list: ${resp.status}`); |
| 426 | } |
| 427 | return resp.json(); |
| 428 | } |
| 429 | |
| 430 | async getSessionDocuments(sessionId: string): Promise<{ files: string[]; file_count: number; session: ChatSession }> { |
| 431 | const resp = await fetch(`${API_BASE_URL}/sessions/${sessionId}/documents`); |
no outgoing calls
no test coverage detected