From f4aaf5b0e49c3a25bb949427282b8e68311b672a Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Tue, 28 Mar 2023 22:59:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=A7=E6=94=B9bing=20patch=E7=AD=96?= =?UTF-8?q?=E7=95=A5beta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- guoba.support.js | 44 ++++++++++++++++++++--------------------- utils/SydneyAIClient.js | 10 +++++----- utils/config.js | 2 +- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/guoba.support.js b/guoba.support.js index 3692cd7..e5ec1c4 100644 --- a/guoba.support.js +++ b/guoba.support.js @@ -321,28 +321,28 @@ export function supportGuoba () { bottomHelpMessage: '即使配置了proxy,依然使用sydney反代', component: 'Switch' }, - { - field: 'sydneyBrainWash', - label: '开启强制洗脑', - bottomHelpMessage: '仅自设定模式下有效。如果发现自设定模式下总是回复类似于换个话题之类的话,可以开启强制洗脑试试,如果还不行就调整你的设定', - component: 'Switch' - }, - { - field: 'sydneyBrainWashName', - label: 'Custom模式下的称呼', - bottomHelpMessage: '仅自设定模式下有效。如果开启了强制洗脑,务必准确填写这个才能精准洗脑。不开启洗脑可以不管这个', - component: 'Input' - }, - { - field: 'sydneyBrainWashStrength', - label: '洗脑强度', - bottomHelpMessage: '仅自设定模式下有效。洗脑强度。默认为15,可以酌情调整。太大的话可能长对话会影响对话质量', - component: 'InputNumber', - componentProps: { - min: 0, - max: 100 - } - }, + // { + // field: 'sydneyBrainWash', + // label: '开启强制洗脑', + // bottomHelpMessage: '仅自设定模式下有效。如果发现自设定模式下总是回复类似于换个话题之类的话,可以开启强制洗脑试试,如果还不行就调整你的设定', + // component: 'Switch' + // }, + // { + // field: 'sydneyBrainWashName', + // label: 'Custom模式下的称呼', + // bottomHelpMessage: '仅自设定模式下有效。如果开启了强制洗脑,务必准确填写这个才能精准洗脑。不开启洗脑可以不管这个', + // component: 'Input' + // }, + // { + // field: 'sydneyBrainWashStrength', + // label: '洗脑强度', + // bottomHelpMessage: '仅自设定模式下有效。洗脑强度。默认为15,可以酌情调整。太大的话可能长对话会影响对话质量', + // component: 'InputNumber', + // componentProps: { + // min: 0, + // max: 100 + // } + // }, { label: '以下为API3方式的配置。', component: 'Divider' diff --git a/utils/SydneyAIClient.js b/utils/SydneyAIClient.js index 240c84b..1175fea 100644 --- a/utils/SydneyAIClient.js +++ b/utils/SydneyAIClient.js @@ -298,13 +298,13 @@ export default class SydneyAIClient { ? [ { text: Config.sydney + ((Config.enableGroupContext && groupId) ? '你看看我们群里的聊天记录吧,回答问题的时候要参考我们的聊天记录。' : ''), - author: 'system' - }, - { - text: `好的,我是${Config.sydneyBrainWashName}。`, author: 'bot' }, - ...(Config.sydneyBrainWash ? Array.from({ length: Math.max(1, Config.sydneyBrainWashStrength - Math.floor(previousCachedMessages.length / 2)) }, () => [...hello]).flat() : []), + // { + // text: `好的,我是${Config.sydneyBrainWashName}。`, + // author: 'bot' + // }, + // ...(Config.sydneyBrainWash ? Array.from({ length: Math.max(1, Config.sydneyBrainWashStrength - Math.floor(previousCachedMessages.length / 2)) }, () => [...hello]).flat() : []), ...groupId ? groupRecord : [], ...previousCachedMessages ] diff --git a/utils/config.js b/utils/config.js index ed332a6..3782268 100644 --- a/utils/config.js +++ b/utils/config.js @@ -73,7 +73,7 @@ const defaultConfig = { enableGroupContext: false, groupContextLength: 50, enableRobotAt: true, - version: 'v2.4.5' + version: 'v2.4.6' } const _path = process.cwd() let config = {}