fix: 兼容性问题

This commit is contained in:
ikechan8370 2024-02-19 21:28:14 +08:00
parent 2c9008ea56
commit 63edc9403c
2 changed files with 4 additions and 3 deletions

View file

@ -358,7 +358,8 @@ export default class SydneyAIClient {
logger.mark('sydney websocket constructed successful')
}
let tone = Config.toneStyle || 'Creative'
if (tone.toLowerCase() === 'sydney') {
// 兼容老版本
if (tone.toLowerCase() === 'sydney' || tone.toLowerCase() === 'custom') {
Config.toneStyle = 'Creative'
}
const isCreative = tone.toLowerCase().includes('creative')
@ -408,7 +409,7 @@ export default class SydneyAIClient {
invocationId = 2
}
if (Config.sydneyGPT4Turbo) {
tone = 'Creative'
// tone = 'Creative'
// optionsSets.push('gpt4tmnc')
invocationId = 1
}

View file

@ -175,7 +175,7 @@ const defaultConfig = {
// origin: https://generativelanguage.googleapis.com
geminiBaseUrl: 'https://gemini.ikechan8370.com',
chatglmRefreshToken: '',
version: 'v2.7.9'
version: 'v2.7.10'
}
const _path = process.cwd()
let config = {}