你的姓名 da1137e468 feat(plugins): add model capabilities database to image-gen
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>
2026-06-14 13:16:05 +08:00
..