-
Notifications
You must be signed in to change notification settings - Fork 25
[Good First Issue] [Enhancement] Add retry logic to LLM calls #85
Copy link
Copy link
Open
Description
Labels: good first issue, hacktoberfest, enhancement, reliability
🎯 Description
Implement configurable retry logic for LLM API calls to improve reliability.
🔍 Problem/Motivation
Network issues and rate limits can cause transient failures. Retry logic improves system reliability.
✅ Acceptance Criteria
- Add retry logic with exponential backoff
- Make retry configuration optional
- Add tests for retry scenarios
- Maintain backward compatibility
📋 Step-by-Step Instructions
Making Changes:
6. Open agents/llm/litellm.py
7. Add retry decorator or logic to completion calls
8. Implement exponential backoff with configurable attempts
9. Add tests for retry scenarios
10. Ensure backward compatibility
📊 Estimated Effort
Time: 1 hour | Difficulty: Beginner-Intermediate | Skills: Python, error handling
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels