mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: 减少重试次数
This commit is contained in:
parent
3561f7c99d
commit
4cbca97c56
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ export default class BingDrawClient {
|
||||||
fetchOptions.agent = proxy(Config.proxy)
|
fetchOptions.agent = proxy(Config.proxy)
|
||||||
}
|
}
|
||||||
let success = false
|
let success = false
|
||||||
let retry = 5
|
let retry = 1
|
||||||
let response
|
let response
|
||||||
while (!success && retry >= 0) {
|
while (!success && retry >= 0) {
|
||||||
response = await fetch(url, Object.assign(fetchOptions, { body, redirect: 'manual', method: 'POST', credentials: 'include' }))
|
response = await fetch(url, Object.assign(fetchOptions, { body, redirect: 'manual', method: 'POST', credentials: 'include' }))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue