This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-16 21:57:43 -04:00
1 parent a2000df253
commit 743b9fd3ce
12 files changed
+98 -91

No files matched your search

-14
View File
@@ -1,14 +0,0 @@
import { WEBUI_API_BASE_URL } from '$lib/constants';
export const checkActiveChats = async (token: string, chatIds: string[]) => {
const res = await fetch(`${WEBUI_API_BASE_URL}/tasks/active/chats`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${token}`
},
body: JSON.stringify({ chat_ids: chatIds })
});
if (!res.ok) throw await res.json();
return res.json();
};