()
| 25 | } |
| 26 | |
| 27 | export async function listConversations() { |
| 28 | const res = await fetch(state.API_BASE + "/api/conversations"); |
| 29 | if (!res.ok) { |
| 30 | throw new Error("Load Conversations Failed"); |
| 31 | } |
| 32 | return await res.json(); |
| 33 | } |
| 34 | |
| 35 | export async function createConversation() { |
| 36 | const res = await fetch(state.API_BASE + "/api/conversations", { |
no outgoing calls
no test coverage detected