Repository navigation
docs: document uppercase image_config.image_size values - #611
Open
LukasParke wants to merge 1 commit into
Open
LukasParke wants to merge 1 commit into
LukasParke wants to merge 1 commit into
Conversation
Use the documented uppercase tiers (1K/2K/4K) in the issue #269 e2e test and add a README example for passing image_config via providerOptions. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Related to #269. Please retest with the uppercase values below and tell us if
image_sizestill has no effect.I traced the request path for this issue. The SDK already forwards
image_configunchanged, through eitherproviderOptions.openrouterorextraBody. The OpenRouter Gemini adapter already uppercasesimage_sizebefore it checks the value against0.5K/1K/2K/4K. So lowercase'4k'reaches Google as'4K', and letter casing is not the cause.0.5Konly works on the Gemini 3.1 Flash Image models. Other models return a 400 error.Because the backend already handles casing, this PR changes only tests and docs:
1K,4K).image_config: { aspect_ratio: '16:9', image_size: '4K' }passed viaproviderOptions.openrouter.The e2e test was not run locally because no API key was available.
Checklist
pnpm stylecheckandpnpm typecheckpnpm testand all tests passChangeset
pnpm changesetto create a changeset file (--empty, docs/test only)🤖 Generated with Claude Code