Commit Graph

69 Commits

Author SHA1 Message Date
Tom Mahler 177854d4f2 refactor model_params dict for consistency 2025-07-17 10:56:30 +03:00
Tom Mahler 460de46c51 add temperature to model params only if it is not None 2025-07-17 10:55:25 +03:00
mertunsall 5c370974d8 fixxxx 2025-07-03 19:28:05 +02:00
mertunsall bcc8a7e54e fix more 2025-07-03 19:23:14 +02:00
mertunsall b02ccc3191 fix types bro 2025-07-03 19:21:57 +02:00
mertunsall 64997091a0 fix linter 2025-07-03 19:14:37 +02:00
mertunsall 512060c546 fix openai cost calculation 2025-07-03 19:09:21 +02:00
mertunsall b37f5294c5 fix 2025-07-02 10:08:11 +02:00
mertunsall fbd3a11737 fix 2025-07-02 10:01:56 +02:00
mertunsall b290e64b86 fix types 2025-07-01 23:24:20 +02:00
mertunsall 6bdb4d5920 Refactor reasoning_effort parameter to be non-optional and default to 'low' 2025-07-01 23:20:50 +02:00
mertunsall 1885dabc48 default reasoning effort to low 2025-07-01 23:18:54 +02:00
Gregor Žunič 5d9fca7c4b optimized schema for all models 2025-06-28 09:28:54 +02:00
Gregor Žunič bc2c1c8fda openai schema works 2025-06-28 00:19:31 +02:00
Magnus Müller 7fb8e5b39b feat: implement SDK-native rate limiting for improved reliability
- Increase max_retries to 10 for all LLM providers (was 2-3)
- OpenAI: Use built-in retry with exponential backoff, jitter, Retry-After header support
- Anthropic: Use built-in retry with intelligent error classification
- Groq: Use built-in retry with capacity exceeded handling (498 errors)
- Google: Implement custom retry logic with pattern-based error detection
- Azure: Inherits improved retry from OpenAI base class

Benefits:
- More resilient to temporary API issues during automation
- Leverages provider SDKs' optimized retry logic
- Reduces custom retry code maintenance burden
- Automatically handles provider-specific error patterns

All providers now retry rate limits, server errors, and connection issues
while skipping authentication errors and bad requests.
2025-06-26 18:08:51 +02:00
Gregor Žunič 2ee526d903 updated pricing for cached tokens support 2025-06-25 15:33:47 +02:00
Gregor Žunič 514b207e8f removed confusing docstrings 2025-06-24 14:13:41 +02:00
Gregor Žunič f2fc8a357e removed unused _serialize_tool_content for groq and openai serializer 2025-06-24 12:49:25 +02:00
Gregor Žunič 7a10ae0c96 Squashed commit langchain to native 2025-06-24 12:26:55 +02:00