mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-20 22:44:22 +01:00
Merge Release v0.4.2 back to master (#4747)
This commit is contained in:
@@ -186,7 +186,9 @@ def retry_api(
|
||||
user_warned = True
|
||||
|
||||
except (APIError, Timeout) as e:
|
||||
if (e.http_status not in [502, 429]) or (attempt == num_attempts):
|
||||
if (e.http_status not in [429, 502, 503]) or (
|
||||
attempt == num_attempts
|
||||
):
|
||||
raise
|
||||
|
||||
backoff = backoff_base ** (attempt + 2)
|
||||
|
||||
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "agpt"
|
||||
version = "0.4.1"
|
||||
version = "0.4.2"
|
||||
authors = [
|
||||
{ name="Torantulino", email="support@agpt.co" },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user