Browse Source
Seedream rejects image generation requests whose size resolves below its minimum pixel floor. The NewApiWG adapter now clamps Seedream pixel dimensions to the existing 2K area floor while preserving the requested aspect ratio and leaving non-Seedream image models unchanged. Constraint: Provider error requires image size to be at least 3686400 pixels Rejected: Change the composer default resolution | would affect unrelated image models and UI behavior Confidence: high Scope-risk: narrow Directive: Keep Seedream size normalization in the provider adapter so UI controls remain provider-agnostic Tested: npm run test:run -- src/app/api/generate/providers/__tests__/newapiwg.test.ts Tested: npm run test:run -- src/app/api/generate/__tests__/route.test.ts -t NewApiWG provider Not-tested: npm run lint currently fails because next lint is parsed as a missing lint directory Not-tested: npx tsc --noEmit currently fails on pre-existing test type errorsfeature_login^2
2 changed files with 62 additions and 8 deletions
Loading…
Reference in new issue