(id)
| 153 | } |
| 154 | |
| 155 | export async function deleteChat(id) { |
| 156 | const res = await fetch(`${API_BASE}/chats/${id}`, { |
| 157 | method: 'DELETE', |
| 158 | headers: getHeaders(), |
| 159 | }); |
| 160 | if (!res.ok) throw new Error('Failed to delete chat'); |
| 161 | return res.json(); |
| 162 | } |
| 163 | |
| 164 | // Documents |
| 165 | export async function getDocuments() { |
nothing calls this directly
no test coverage detected