mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: bing模式也走sydney代理
This commit is contained in:
parent
eb15c51d81
commit
355817e20b
3 changed files with 15 additions and 10 deletions
11
apps/chat.js
11
apps/chat.js
|
|
@ -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 = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue