Merge Release v0.4.2 back to master (#4747)

This commit is contained in:
merwanehamadi
2023-06-19 19:23:31 -07:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -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)

View File

@@ -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" },
]