fix(providers): fail over across provider failure domains

This commit is contained in:
chengyongru authored and GitHub committed 2026-07-19 17:37:55 +08:00
1 parent 39a952ecce
commit 2099cb009e
2 files changed
+49

No files matched your search

+2
View File
@@ -291,6 +291,8 @@ class FallbackProvider(LLMProvider):
@staticmethod
def _should_fallback(response: LLMResponse) -> bool:
if LLMProvider.is_arrearage_response(response):
return True
if response.error_should_retry is False:
return False
status = response.error_status_code