mirror of
https://github.com/vastxie/99AI.git
synced 2025-09-17 17:26:38 +08:00
Update store.js
修复阿里/清华模型无法使用的问题
This commit is contained in:
parent
6598d27d43
commit
4de54d8fec
8
dist/modules/chatgpt/store.js
vendored
8
dist/modules/chatgpt/store.js
vendored
@ -31,16 +31,8 @@ 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;
|
||||
if (model === 'gpt-4-vision-preview' && fileInfo) {
|
||||
|
Loading…
Reference in New Issue
Block a user