()
| 43 | |
| 44 | // Datasets |
| 45 | export async function getDatasets() { |
| 46 | const res = await fetch(`${API_BASE}/datasets`, { headers: getHeaders() }); |
| 47 | if (!res.ok) throw new Error('Failed to fetch datasets'); |
| 48 | return res.json(); |
| 49 | } |
| 50 | |
| 51 | // Chats |
| 52 | export async function getChats() { |
no test coverage detected