Browse Source
Gemini native image edits can default to the input image dimensions unless the response format also carries the requested image shape. The NewApiWG Gemini payload now sends the existing imageConfig plus responseFormat.image so Popi 16:9 selections survive image-to-image generation while preserving the prior native config path. Constraint: Gemini image edit defaults can keep the input image dimensions when output format is not explicit Rejected: Changing composer or node sizing first | the selected aspect ratio already reached the API payload in tests Confidence: medium Scope-risk: narrow Directive: Keep imageConfig and responseFormat in sync for Gemini-native NewApiWG image models Tested: npm run test:run -- src/app/api/generate/providers/__tests__/newapiwg.test.ts src/app/api/generate/__tests__/route.test.ts Tested: PROVIDER_MODE=popi NEXT_PUBLIC_PROVIDER_MODE=popi npm run buildfeature/add_agent_md
3 changed files with 13 additions and 0 deletions
Loading…
Reference in new issue