From 8a0043d343b96890514650eec7d00cfe23e42296 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Fri, 16 Dec 2022 23:48:56 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/abstract-chatgpt-api.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/abstract-chatgpt-api.ts b/src/abstract-chatgpt-api.ts index 2e2144f..1f6f19f 100644 --- a/src/abstract-chatgpt-api.ts +++ b/src/abstract-chatgpt-api.ts @@ -41,6 +41,8 @@ export abstract class AChatGPTAPI { /** * Refreshes the current ChatGPT session. * + * Useful for bypassing 403 errors when Cloudflare clearance tokens expire. + * * @returns Access credentials for the new session. * @throws An error if it fails. */ @@ -49,6 +51,8 @@ export abstract class AChatGPTAPI { /** * Closes the current ChatGPT session and starts a new one. * + * Useful for bypassing 401 errors when sessions expire. + * * @returns Access credentials for the new session. * @throws An error if it fails. */