This commit is contained in:
Timothy Jaeryang Baek
2025-01-05 00:44:38 -08:00
parent 2444327a47
commit fe59b7f39c
4 changed files with 40 additions and 33 deletions
+2 -2
View File
@@ -618,10 +618,10 @@ export const cloneChatById = async (token: string, id: string) => {
return res;
};
export const cloneChatByShareId = async (token: string, share_id: string) => {
export const cloneSharedChatById = async (token: string, id: string) => {
let error = null;
const res = await fetch(`${WEBUI_API_BASE_URL}/chats/${share_id}/clone_shared`, {
const res = await fetch(`${WEBUI_API_BASE_URL}/chats/${id}/clone/shared`, {
method: 'POST',
headers: {
Accept: 'application/json',