mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Fix setting chat session title from Desktop app
Pass auth headers to not have the chat session title update request fail
This commit is contained in:
parent
c9e05dc184
commit
c792fa819f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue