diff --git a/utils/SydneyAIClient.js b/utils/SydneyAIClient.js index 6a47799..be9fb1f 100644 --- a/utils/SydneyAIClient.js +++ b/utils/SydneyAIClient.js @@ -70,25 +70,25 @@ export default class SydneyAIClient { accept: 'application/json', 'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6', 'content-type': 'application/json', - 'sec-ch-ua': '"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"', + // 'sec-ch-ua': '"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"', // 'sec-ch-ua-arch': '"x86"', // 'sec-ch-ua-bitness': '"64"', // 'sec-ch-ua-full-version': '"112.0.1722.7"', // 'sec-ch-ua-full-version-list': '"Chromium";v="112.0.5615.20", "Microsoft Edge";v="112.0.1722.7", "Not:A-Brand";v="99.0.0.0"', - 'sec-ch-ua-mobile': '?0', + // 'sec-ch-ua-mobile': '?0', // 'sec-ch-ua-model': '', - 'sec-ch-ua-platform': '"macOS"', + // 'sec-ch-ua-platform': '"macOS"', // 'sec-ch-ua-platform-version': '"15.0.0"', - 'sec-fetch-dest': 'empty', - 'sec-fetch-mode': 'cors', - 'sec-fetch-site': 'same-origin', - 'x-ms-client-request-id': crypto.randomUUID(), - 'x-ms-useragent': 'azsdk-js-api-client-factory/1.0.0-beta.1 core-rest-pipeline/1.10.3 OS/macOS', + // 'sec-fetch-dest': 'empty', + // 'sec-fetch-mode': 'cors', + // 'sec-fetch-site': 'same-origin', + // 'x-ms-client-request-id': crypto.randomUUID(), + // 'x-ms-useragent': 'azsdk-js-api-client-factory/1.0.0-beta.1 core-rest-pipeline/1.10.3 OS/macOS', // cookie: this.opts.cookies || `_U=${this.opts.userToken}`, Referer: 'https://edgeservices.bing.com/edgesvc/chat?udsframed=1&form=SHORUN&clientscopes=chat,noheader,channelstable,', - 'Referrer-Policy': 'origin-when-cross-origin', + // 'Referrer-Policy': 'origin-when-cross-origin', // Workaround for request being blocked due to geolocation - 'x-forwarded-for': '1.1.1.1' + // 'x-forwarded-for': '1.1.1.1' } } if (this.opts.cookies || this.opts.userToken) {