Skip to content

Commit 034b3c4

Browse files
committed
Update geminicli.py
1 parent 0f59987 commit 034b3c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/geminicli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def prepare_request_headers_and_payload(
8484

8585
def _is_retryable_status(status_code: int, disable_error_codes: list[int]) -> bool:
8686
"""统一判断是否属于可重试状态码。"""
87-
return status_code in (429, 503) or status_code in disable_error_codes
87+
return status_code in (429, 500, 503) or status_code in disable_error_codes
8888

8989

9090
async def _switch_credential_for_retry(

0 commit comments

Comments
 (0)