fix: 整理了代理与反代之间的关系

This commit is contained in:
ikechan8370 2023-03-07 16:27:51 +08:00
parent ad9516d370
commit 3ee5a2f3f6
5 changed files with 49 additions and 12 deletions

View file

@ -58,7 +58,7 @@ export default class SydneyAIClient {
...opts,
host: opts.host || Config.sydneyReverseProxy || 'https://www.bing.com'
}
if (opts.proxy) {
if (opts.proxy && !Config.sydneyForceUseReverse) {
this.opts.host = 'https://www.bing.com'
}
this.debug = opts.debug