Commit 7dfea525 authored by Skippy's avatar Skippy

Fix for Failure to Retry request after 403

While loop condition was not being satisfied due to result being set to a value (the OpenAI response), thus the (!result) condition was False.
parent 8b24a9e8
...@@ -551,6 +551,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI { ...@@ -551,6 +551,7 @@ export class ChatGPTAPIBrowser extends AChatGPTAPI {
} else { } else {
await this.refreshSession() await this.refreshSession()
await delay(1000) await delay(1000)
result = null
continue continue
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment