mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 18:45:00 +00:00
Talk interface sends content-type headers to chatgpt
Signed-off-by: baflo <834350+baflo@users.noreply.github.com>
This commit is contained in:
parent
06d7cc43ae
commit
680bef062b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue