From e4d101e5500343a25bb9d2217a84fba4cfd9fd59 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 2 Apr 2024 07:04:04 -0700 Subject: [PATCH] fix: delete shared chat by id --- src/lib/apis/chats/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/apis/chats/index.ts b/src/lib/apis/chats/index.ts index 4fcd1b639..28b3d4be5 100644 --- a/src/lib/apis/chats/index.ts +++ b/src/lib/apis/chats/index.ts @@ -285,7 +285,7 @@ export const shareChatById = async (token: string, id: string) => { export const deleteSharedChatById = async (token: string, id: string) => { let error = null; - const res = await fetch(`${WEBUI_API_BASE_URL}/chats/${id}`, { + const res = await fetch(`${WEBUI_API_BASE_URL}/chats/${id}/share`, { method: 'DELETE', headers: { Accept: 'application/json',