mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-03 00:02:36 +00:00
feat: Add graceful quota limit handling for LLM APIs
- Create LLMQuotaLimitExceededException following CrewAI's existing pattern - Add quota limit error handling in both streaming and non-streaming LLM calls - Update error handling in agent execution and crew agent executor - Add comprehensive tests for quota limit scenarios - Fixes issue #3434: Handle RateLimitError gracefully instead of crashing The implementation catches litellm.exceptions.RateLimitError and converts it to a CrewAI-specific exception, allowing tasks to detect quota limits and shut down gracefully instead of crashing with unhandled exceptions. Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -1 +1,4 @@
|
||||
"""Exceptions for crewAI."""
|
||||
|
||||
from crewai.utilities.exceptions.context_window_exceeding_exception import LLMContextLengthExceededException
|
||||
from crewai.utilities.exceptions.quota_limit_exception import LLMQuotaLimitExceededException
|
||||
|
||||
Reference in New Issue
Block a user