mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
feat: 支持必应的context
This commit is contained in:
parent
e39391c176
commit
665215788c
5 changed files with 55 additions and 25 deletions
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue