This commit is contained in:
Brandon Hancock
2025-01-24 11:54:05 -05:00
parent e27a15023c
commit 0cba344976
2 changed files with 37 additions and 2 deletions

View File

@@ -262,8 +262,8 @@ class Agent(BaseAgent):
}
)["output"]
except Exception as e:
if isinstance(e, LiteLLMAuthenticationError):
# Do not retry on authentication errors
if e.__class__.__module__.startswith("litellm.exceptions"):
# Do not retry on litellm errors
raise e
self._times_executed += 1
if self._times_executed > self.max_retry_limit: