From c792fa819f8c828f51f3976ae017efdc07fa073f Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Fri, 15 Mar 2024 13:06:08 +0530 Subject: [PATCH] Fix setting chat session title from Desktop app Pass auth headers to not have the chat session title update request fail --- src/interface/desktop/chat.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/desktop/chat.html b/src/interface/desktop/chat.html index cc081da7..c1341290 100644 --- a/src/interface/desktop/chat.html +++ b/src/interface/desktop/chat.html @@ -918,7 +918,7 @@ let newTitle = conversationTitleInput.value; if (newTitle != null) { let editURL = `/api/chat/title?client=web&conversation_id=${incomingConversationId}&title=${newTitle}`; - fetch(`${hostURL}${editURL}` , { method: "PATCH" }) + fetch(`${hostURL}${editURL}` , { method: "PATCH", headers }) .then(response => response.ok ? response.json() : Promise.reject(response)) .then(data => { conversationButton.textContent = newTitle;