| feat(cm-imagegen): support image_generation API with data.image_urls handling The cm-imagegen CLI hardcoded the OpenAI Images API (/images/generations and /images/edits) and only parsed data[].b64_json responses. When the active model_provider base_url targets the image_generation API (minimax.io / minimaxi.com hosts), the CLI now routes generate and edit to POST /v1/image_generation instead. Added request fields model, prompt, subject_reference, aspect_ratio, width, height, response_format, seed, n, and prompt_optimizer. Edit mode passes --image inputs as subject_reference character entries with base64 data URLs. Added response handling for data.image_urls (url responses, downloaded and saved) and data.image_base64 (base64 responses, decoded and saved), plus base_resp.status_code error checking and metadata.success_count / failed_count reporting. Updated references/image-api.md and SKILL.md to document the image_generation API path and config policy. | 2 个月前 |