feat: 支持必应的context

This commit is contained in:
ikechan8370 2023-03-24 16:45:01 +08:00
parent e39391c176
commit 665215788c
5 changed files with 55 additions and 25 deletions

View file

@ -958,7 +958,7 @@ export class chatgpt extends plugin {
debug: Config.debug,
cache: cacheOptions,
user: e.sender.user_id,
proxy: Config.proxy
proxy: Config.proxy,
})
// Sydney不实现上下文传递删除上下文索引
delete conversation.clientId
@ -985,6 +985,7 @@ export class chatgpt extends plugin {
try {
let opt = _.cloneDeep(conversation) || {}
opt.toneStyle = Config.toneStyle
opt.context = Config.sydneyContext
response = await bingAIClient.sendMessage(prompt, opt, (token) => {
reply += token
})