mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-08-16 11:18:07 +08:00
@@ -79,8 +79,8 @@ export async function generateAnswersWithCustomApi(port, question, session, apiK
|
||||
port.onMessage.removeListener(stopListener)
|
||||
},
|
||||
async onError(resp) {
|
||||
if (resp instanceof Error) throw resp
|
||||
port.onMessage.removeListener(stopListener)
|
||||
if (resp instanceof Error) throw resp
|
||||
if (resp.status === 403) {
|
||||
throw new Error('CLOUDFLARE')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user