Skip to content

v2.8.2

Choose a tag to compare

@Oaklight Oaklight released this 31 Jan 18:52
· 266 commits to master since this release

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_calls and tools definitions
    • Improved recursive text extraction for nested content
    • Fixed count_tokens to handle None values gracefully
  • 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