From a03b70010fafd55c4e91cddc47c4e4c5f1a05eb3 Mon Sep 17 00:00:00 2001 From: Florian Bachmann <834350+baflo@users.noreply.github.com> Date: Thu, 17 Apr 2025 15:02:11 +0200 Subject: [PATCH] fix(talk): Talk interface sends content-type headers to chatgpt (#5200) Talk interface sends content-type headers to chatgpt Signed-off-by: baflo <834350+baflo@users.noreply.github.com> --- core/http/static/talk.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/http/static/talk.js b/core/http/static/talk.js index 56080816..3fafa0a0 100644 --- a/core/http/static/talk.js +++ b/core/http/static/talk.js @@ -115,6 +115,7 @@ async function sendTextToChatGPT(text) { const response = await fetch('v1/chat/completions', { method: 'POST', + headers: { "Content-Type": "application/json" }, body: JSON.stringify({ model: getModel(), messages: conversationHistory