fix: 大改bing patch策略beta

This commit is contained in:
ikechan8370 2023-03-28 22:59:46 +08:00
parent b68cb41104
commit f4aaf5b0e4
3 changed files with 28 additions and 28 deletions

View file

@ -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'

View file

@ -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
]

View file

@ -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 = {}