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