Repository navigation
v2.8.2
v2.8.2 (2026-01-31)
Refactor
- Logging System Overhaul: Replaced loguru with standard library logging for better compatibility; centralized request logging utilities with improved formatting and log levels
Bug Fixes
-
Large Image Payload Support: Increased aiohttp client_max_size to 100MB to handle large image uploads
-
Token Counting Accuracy (@neil Getty): Fixed missing token counts for tool-related content
- Added token counting for
tool_callsandtoolsdefinitions - Improved recursive text extraction for nested content
- Fixed
count_tokensto handle None values gracefully
- Added token counting for
-
Claude Max Tokens Fix: Fixed 500 upstream errors caused by excessive max_tokens in non-streaming tool call requests
- Enforced max_tokens limit for Claude models to prevent issues with clients (like OpenCode) requesting 32k+ tokens with large tool definitions
Improvements
- Centralized pseudo_stream handling and improved logging consistency across endpoints
- Improved upstream error handling across all endpoints with better error messages and recovery