Parcourir la source

fix: delete shared chat by id

Timothy J. Baek il y a 1 an
Parent
commit
49428eb7ef
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/apis/chats/index.ts

+ 1 - 1
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',