From 4de54d8fec8aca228680daf1f320a8085ee08bb6 Mon Sep 17 00:00:00 2001 From: vastxie Date: Fri, 23 Feb 2024 17:14:21 +0800 Subject: [PATCH] Update store.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复阿里/清华模型无法使用的问题 --- dist/modules/chatgpt/store.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/dist/modules/chatgpt/store.js b/dist/modules/chatgpt/store.js index 1bd1d86..6ecab26 100644 --- a/dist/modules/chatgpt/store.js +++ b/dist/modules/chatgpt/store.js @@ -31,15 +31,7 @@ class NineStore { let messages = []; let nextNumTokensEstimate = 0; if (systemMessage) { - const specialModels = ['gemini-pro', 'ERNIE', 'hunyuan']; - const isSpecialModel = model && specialModels.some(specialModel => model.includes(specialModel)); - if (isSpecialModel) { - messages.push({ role: 'user', content: systemMessage, name }); - messages.push({ role: 'assistant', content: "好的", name }); - } - else { messages.push({ role: 'system', content: systemMessage, name }); - } } const systemMessageOffset = messages.length; let round = 0;