v0.16.6
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 aMAX_EMPTY_RESPONSE_RETRIESlimit (default 5) to prevent infinite loop when the model returns empty responses. -
Image generation: allow agent to set target output dir
Added an optionaloutput_dirparameter 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 ofreasoning_contentfor 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
UpdatedCodeAnalysisServiceto return the image result dict (includingimage_url) when a file is an image, and added.webpsupport to MIME mapping. -
Model: fix bug that can cause loop on reasoning model without reason content
Prevent infinite retries when a reasoning model returns emptyreasoning_contentin_run_stream_response. -
Debug: make the formatting correctly follow source format
Changed_truncate_contentto 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_extensionpromoted to a static method inFileHandlerfor reuse.