From f7c4b5221e58765bdbd6e32d1d3e8b949241c9af Mon Sep 17 00:00:00 2001 From: Ian Date: Wed, 7 Oct 2026 18:59:29 -0400 Subject: [PATCH] refactor: retry any 4xx or 5xx status --- strix/core/execution.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/strix/core/execution.py b/strix/core/execution.py index 4f579f5e..2d4ad5f7 100644 --- a/strix/core/execution.py +++ b/strix/core/execution.py @@ -184,9 +184,7 @@ def _is_transient_model_error(exc: BaseException) -> bool: return True code = _model_error_status_code(exc) if code is not None: - import litellm - - return 400 <= code < 500 or bool(litellm._should_retry(code)) + return code >= 400 return isinstance(exc, APIError)