Skip to content

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

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

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
Contributor

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.

afandiaziz added a commit to afandiaziz/9router that referenced this pull request Aug 20, 2026
afandiaziz added a commit to afandiaziz/9router that referenced this pull request Aug 20, 2026
…/security/providers

Verified via trial-merge + per-PR tests (84 pass/0 fail), OAuth baseline
identical, providers baseline additive-only (+reasonix/ovh/joycode/openmodel).

PRs: decolua#3411 decolua#3370 decolua#3369 decolua#3368 decolua#3393 decolua#3366 decolua#3395 decolua#3382 decolua#3359 decolua#3408 decolua#3357
     decolua#3379 decolua#3380 decolua#3381 decolua#3396 decolua#3338

Co-Authored-By: Claude <noreply@anthropic.com>
@decolua

decolua commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Thanks @fasilu for the contribution! Reviewed and merged into master. 🙏

@decolua decolua closed this Aug 28, 2026
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.

2 participants