Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/llama_stack_client/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,11 @@ def _should_retry(self, response: httpx.Response) -> bool:
return True

# Retry internal errors.
if response.status_code >= 500:
if response.status_code in (
502, # Bad Gateway
503, # Service Unavailable
504, # Gateway Timeout
):
log.debug("Retrying due to status code %i", response.status_code)
return True

Expand Down