fix(providers): fail over across provider failure domains

This commit is contained in:
chengyongru
2026-07-19 17:37:55 +08:00
committed by GitHub
parent 39a952ecce
commit 2099cb009e
2 changed files with 49 additions and 0 deletions
+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