Closed danielchalef closed 2 months ago
This PR introduces RateLimitError and updates LLM client retry logic to handle rate limit errors using exponential backoff.
RateLimitError
Key points:
graphiti_core/llm_client/errors.py
graphiti_core/llm_client/__init__.py
graphiti_core/llm_client/client.py
tenacity
graphiti_core/llm_client/anthropic_client.py
groq_client.py
openai_client.py
Generated with :heart: by ellipsis.dev
Summary:
This PR introduces
RateLimitError
and updates LLM client retry logic to handle rate limit errors using exponential backoff.Key points:
RateLimitError
ingraphiti_core/llm_client/errors.py
.graphiti_core/llm_client/__init__.py
to exportRateLimitError
.graphiti_core/llm_client/client.py
to retry onRateLimitError
usingtenacity
with exponential backoff.graphiti_core/llm_client/anthropic_client.py
,groq_client.py
, andopenai_client.py
to raiseRateLimitError
on rate limit exceptions.Generated with :heart: by ellipsis.dev