mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-27 15:13:37 +08:00
Agent can now query provider capabilities via list_providers to know: - Supported image sizes per model - Whether the model supports image editing - Whether transparent background is supported - Max number of images per request (n) - Response format (url vs b64_json) Built-in database covers: Agnes image, GPT-image-2, DALL-E 2/3, Gemini image, Flux, Stable Diffusion. Unknown models get pattern-based defaults or "unknown" with full compatibility fallback. generate_image now validates size against capabilities and warns on mismatch. edit_image checks if any provider supports editing before attempting. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>