mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-30 19:03:01 +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;
|
let newTitle = conversationTitleInput.value;
|
||||||
if (newTitle != null) {
|
if (newTitle != null) {
|
||||||
let editURL = `/api/chat/title?client=web&conversation_id=${incomingConversationId}&title=${newTitle}`;
|
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(response => response.ok ? response.json() : Promise.reject(response))
|
||||||
.then(data => {
|
.then(data => {
|
||||||
conversationButton.textContent = newTitle;
|
conversationButton.textContent = newTitle;
|
||||||
|
|
Loading…
Reference in a new issue