mirror of
https://github.com/JimLiu/baoyu-skills.git
synced 2026-07-09 20:51:22 +00:00
661bdd08ff
Gemini 3 stopped emitting the legacy `image_generation_content` marker in the candidate text and moved the generated image into a later response part. The `wants_generated` gate only checked the candidate text / a single structured field, so on Gemini 3 it was never true and the image was silently dropped: generate_content returned an empty result even though the gg-dl image URL was present in the raw response. - Broaden `wants_generated` to also fire when the raw response contains a `gg-dl/` generated-image URL or an `image_generation_content` marker. - When a candidate has no image part, skip extraction instead of throwing ImageGenerationError, so multi-candidate responses don't fail wholesale. Verified against a live Gemini 3 account: image generation returns the generated image again with the default gemini-3-pro model.