From 680bef062b10b7cd77c7c45f12f5d5852f0c53e9 Mon Sep 17 00:00:00 2001 From: baflo <834350+baflo@users.noreply.github.com> Date: Thu, 17 Apr 2025 10:08:47 +0200 Subject: [PATCH] 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