fix: bing模式也走sydney代理

This commit is contained in:
ikechan8370 2023-03-07 22:05:43 +08:00
parent eb15c51d81
commit 355817e20b
3 changed files with 15 additions and 10 deletions

View file

@ -756,12 +756,17 @@ export class chatgpt extends plugin {
delete conversation.invocationId
delete conversation.conversationSignature
} else {
bingAIClient = new BingAIClient({
let bingOption = {
userToken: bingToken, // "_U" cookie from bing.com
cookies,
debug: Config.debug,
proxy: Config.proxy
})
proxy: Config.proxy,
host: Config.sydneyReverseProxy
}
if (Config.proxy && Config.sydneyReverseProxy && !Config.sydneyForceUseReverse) {
delete bingOption.host
}
bingAIClient = new BingAIClient(bingOption)
}
let response
let reply = ''