fix: 更换Sydney接口

This commit is contained in:
ikechan8370 2023-05-23 10:42:14 +08:00 committed by GitHub
parent 758aeb67a2
commit cc78143c0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,8 +109,8 @@ export default class SydneyAIClient {
let accessible = !(await isCN()) || this.opts.proxy
if (accessible && !Config.sydneyForceUseReverse) {
// 本身能访问bing.com那就不用反代啦重置host
logger.info('change hosts to https://www.bing.com')
this.opts.host = 'https://www.bing.com'
logger.info('change hosts to https://edgeservices.bing.com')
this.opts.host = 'https://edgeservices.bing.com/edgesvc'
}
logger.mark('使用host' + this.opts.host)
let response = await fetch(`${this.opts.host}/turing/conversation/create`, fetchOptions)