Skip to content

feat: Add gemini-3-pro-image-preview model support for imageSize para… - #17019

Merged
1 commit merged into
BerriAI:mainfrom
choigawoon:enhancement/add-imagesize-params-to-gemini-3-pro-image-preview
Nov 26, 2025
Merged

feat: Add gemini-3-pro-image-preview model support for imageSize para…#17019
1 commit merged into
BerriAI:mainfrom
choigawoon:enhancement/add-imagesize-params-to-gemini-3-pro-image-preview

Conversation

@choigawoon

@choigawoon choigawoon commented Nov 24, 2025

Copy link
Copy Markdown
Contributor

…meters

  • Add model identifier to FLASH_IMAGE_PREVIEW_MODEL_IDENTIFIERS
  • Add imageSize parameter support (1K, 2K, 4K)
  • Fix automatic thinkingConfig injection for image generation models
  • Add tests for endpoint routing and parameter transformation
  • Update documentation with new model

Title

Relevant issues

Fixes #17013

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as
    possible, it only solves 1 specific problem
pr-local-test

heres test-unit result. there are 3 failed but its not related with my fixes.
image

Type

🆕 New Feature

Changes

@vercel

vercel Bot commented Nov 24, 2025

Copy link
Copy Markdown

@choigawoon is attempting to deploy a commit to the CLERKIEAI Team on Vercel.

A member of the Team first needs to authorize it.

@choigawoon

Copy link
Copy Markdown
Contributor Author

#17013

@ghost

ghost commented Nov 25, 2025

Copy link
Copy Markdown

@choigawoon fixed the thinking config issue with this PR - #17027

can you cleanup your PR to just focus on the imageSize issue?

@choigawoon
choigawoon force-pushed the enhancement/add-imagesize-params-to-gemini-3-pro-image-preview branch from 056218c to 1c6aeed Compare November 25, 2025 08:51
…meters

- Add model identifier to FLASH_IMAGE_PREVIEW_MODEL_IDENTIFIERS
- Add imageSize parameter support (1K, 2K, 4K) with GeminiImageSize type
- Add tests for imageSize parameter transformation
- Update documentation with new model
@choigawoon
choigawoon force-pushed the enhancement/add-imagesize-params-to-gemini-3-pro-image-preview branch from 1c6aeed to 778d22b Compare November 25, 2025 08:56
@choigawoon

Copy link
Copy Markdown
Contributor Author

@krrishdholakia
I’ve updated only the imageSize.

@ghost
ghost merged commit be97073 into BerriAI:main Nov 26, 2025
2 of 6 checks passed
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
…meters (BerriAI#17019)

- Add model identifier to FLASH_IMAGE_PREVIEW_MODEL_IDENTIFIERS
- Add imageSize parameter support (1K, 2K, 4K) with GeminiImageSize type
- Add tests for imageSize parameter transformation
- Update documentation with new model
This pull request was closed.
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.

[Bug]: Thinking level error in litellm proxy + gemini 3 pro image

1 participant