fix(providers): retry before falling back

This commit is contained in:
chengyongru
2026-08-21 16:46:38 +08:00
committed by chengyongru
parent 98660c19cc
commit f93d4c3ae4
4 changed files with 806 additions and 12 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ async def test_chat_with_retry_emits_terminal_progress_when_standard_retries_exh
)
assert response.content == "503 final server error"
assert progress[-1] == "Model request failed after 4 retries, giving up."
assert progress[-1] == "Model request failed after 4 attempts, giving up."
@pytest.mark.asyncio