mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-09 20:13:17 +00:00
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>
This commit is contained in:
parent
e3717e5c1a
commit
a03b70010f
@ -115,6 +115,7 @@ async function sendTextToChatGPT(text) {
|
|||||||
|
|
||||||
const response = await fetch('v1/chat/completions', {
|
const response = await fetch('v1/chat/completions', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
headers: { "Content-Type": "application/json" },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
model: getModel(),
|
model: getModel(),
|
||||||
messages: conversationHistory
|
messages: conversationHistory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user