From 6598d27d43bc6a7004fe7d06e4eceb9c7c4a2c24 Mon Sep 17 00:00:00 2001 From: vastxie Date: Fri, 23 Feb 2024 17:13:25 +0800 Subject: [PATCH] Update openai.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复阿里/清华模型无法使用的问题 --- dist/modules/chatgpt/openai.js | 1 - 1 file changed, 1 deletion(-) diff --git a/dist/modules/chatgpt/openai.js b/dist/modules/chatgpt/openai.js index b64c31e..cf26654 100644 --- a/dist/modules/chatgpt/openai.js +++ b/dist/modules/chatgpt/openai.js @@ -85,7 +85,6 @@ async function sendMessageFromOpenAi(messagesHistory, inputs, uploadService) { responseType: 'stream', headers: { 'Content-Type': 'application/json', - Accept: "application/json", Authorization: `Bearer ${apiKey}`, }, data: {