Skip to content

Commit 13973db

Browse files
committed
Talk interface sends content-type headers to chatgpt
Signed-off-by: baflo <[email protected]>
1 parent 06d7cc4 commit 13973db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/http/static/talk.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ async function sendTextToChatGPT(text) {
115115

116116
const response = await fetch('v1/chat/completions', {
117117
method: 'POST',
118+
headers: { "Content-Type": "application/json" },
118119
body: JSON.stringify({
119120
model: getModel(),
120121
messages: conversationHistory

0 commit comments

Comments
 (0)