diff --git a/utils/message.js b/utils/message.js index 98962ac..2435d18 100644 --- a/utils/message.js +++ b/utils/message.js @@ -86,6 +86,9 @@ export class OfficialChatGPTClient { referrer: 'https://chat.openai.com/chat' } const res = await this._fetch(url, option) + if (res.status === 403) { + return await this.sendMessage(prompt, opts) + } if (res.status !== 200) { let body = await res.json() throw new Error(JSON.stringify(body, null, 2)) diff --git a/utils/uploadRecords.js b/utils/uploadRecords.js new file mode 100644 index 0000000..e69de29