From 63edc9403c79fc0eca1208dfd0d87f03948b751c Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Mon, 19 Feb 2024 21:28:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=BC=E5=AE=B9=E6=80=A7=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/SydneyAIClient.js | 5 +++-- utils/config.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/utils/SydneyAIClient.js b/utils/SydneyAIClient.js index dda65fa..bee3eef 100644 --- a/utils/SydneyAIClient.js +++ b/utils/SydneyAIClient.js @@ -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 } diff --git a/utils/config.js b/utils/config.js index fcafea5..beccf06 100644 --- a/utils/config.js +++ b/utils/config.js @@ -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 = {}