Skip to content

feat(open-sse): support dynamic image aspect ratios for antigravity image generation - #3395

Open
fasilu wants to merge 1 commit into
decolua:masterfrom
fasilu:feat/antigravity-image-aspect
Open

feat(open-sse): support dynamic image aspect ratios for antigravity image generation#3395
fasilu wants to merge 1 commit into
decolua:masterfrom
fasilu:feat/antigravity-image-aspect

Conversation

@fasilu

@fasilu fasilu commented Aug 17, 2026

Copy link
Copy Markdown

Problem

Gemini/Antigravity image generation requests lacked support for dynamic aspect ratios mapping from standard request dimensions.

Solution

  • Intercept non-image model calls in the Antigravity image handler to map them to gemini-3.1-flash-image.
  • Extract body.size parameters and resolve them to standard aspect ratios (e.g. 16:9 -> suffix -16x9).
  • Append the aspect ratio suffix to the target model string to request the correct dimensions from the upstream provider.

Impact

  • Enables full support for requesting different aspect ratios during image generation on Antigravity models.

Testing

  • Verified that the test suite runs successfully and the changes introduce no new regressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant