mirror of
https://github.com/Dasemu/chatgpt-imagegen-mcp.git
synced 2026-11-26 23:36:26 +00:00
feat: retry transient chatgpt.com failures in a fresh chat
Timeouts, UI glitches, text-only replies and browser errors get up to CHATGPT_RETRIES extra attempts with a growing pause; a crashed browser is relaunched. Usage limits, lost sessions and refusals still fail at once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d751acfe63
commit
f7e7148135
7 files changed
+83
-15
No files matched your search
@@ -33,6 +33,10 @@ CHATGPT_USER_AGENT=
|
||||
CHATGPT_LOCALE=es-ES
|
||||
CHATGPT_TURN_TIMEOUT_SECONDS=600
|
||||
CHATGPT_IMAGE_TIMEOUT_SECONDS=180
|
||||
# Extra attempts (each in a new chat) for transient failures: timeouts, UI glitches, browser errors
|
||||
CHATGPT_RETRIES=2
|
||||
# Backoff base between attempts (multiplied by the attempt number)
|
||||
CHATGPT_RETRY_DELAY_SECONDS=15
|
||||
CHATGPT_BROWSER_IDLE_CLOSE_MINUTES=10
|
||||
# Random pause between generations, in seconds (min..max)
|
||||
CHATGPT_MIN_INTERVAL_SECONDS=30
|
||||
|
||||
Reference in new issue
Block a user