Skip to content

v0.16.6

Choose a tag to compare

@daltonnyx daltonnyx released this 15 Jun 15:51

Release v0.16.6

Features

  • Added MiniMax M3 model to providers
    Integrated MiniMax M3 with support for vision, tool use, thinking, streaming, and structured output across Fireworks, Together AI, and CommandCode providers.

  • Stream handler: add upper limit for retry stream
    Introduced a MAX_EMPTY_RESPONSE_RETRIES limit (default 5) to prevent infinite loop when the model returns empty responses.

  • Image generation: allow agent to set target output dir
    Added an optional output_dir parameter to the image generation tool so agents can specify where to save generated images.

Bug Fixes

  • Reasoning models: make reasoning model work properly with tool calls
    Fixed handling of reasoning_content for reasoning-capable models when tool calls are present, ensuring empty reasoning content defaults to a space to avoid API errors.

  • Custom LLM: in OpenAI completion API, tool cannot have image type
    Cheat by converting image content from tool responses into a separate user message for providers that do not allow images in assistant/tool roles (applies to both CustomLLM and TogetherAI services).

  • File reading: fix issue that agent cannot read image file correctly
    Updated CodeAnalysisService to return the image result dict (including image_url) when a file is an image, and added .webp support to MIME mapping.

  • Model: fix bug that can cause loop on reasoning model without reason content
    Prevent infinite retries when a reasoning model returns empty reasoning_content in _run_stream_response.

  • Debug: make the formatting correctly follow source format
    Changed _truncate_content to preserve content list structure (e.g., images, tool calls) instead of flattening it into a single text string, improving console display.

Other Changes

  • guess_mime_by_extension promoted to a static method in FileHandler for reuse.