fix: default chatgpt api3

This commit is contained in:
ikechan8370 2023-03-07 17:11:54 +08:00
parent 3ee5a2f3f6
commit 5c650041b9

View file

@ -48,10 +48,10 @@ export class OfficialChatGPTClient {
if (timeoutMs) { if (timeoutMs) {
abortController = new AbortController() abortController = new AbortController()
} }
let url = this._apiReverseUrl || 'https://chat.openai.com/backend-api/conversation' let url = this._apiReverseUrl || 'https://apps.openai.com/api/conversation'
if (this._apiReverseUrl && Config.proxy && !Config.apiForceUseReverse) { if (this._apiReverseUrl && Config.proxy && !Config.apiForceUseReverse) {
// 如果配了proxy而且有反代但是没开启强制反代 // 如果配了proxy而且有反代但是没开启强制反代
url = 'https://chat.openai.com/backend-api/conversation' url = 'https://apps.openai.com/api/conversation'
} }
const body = { const body = {
action, action,