Skip to content

fix(images): 适配 WorkBuddy Seedream 生图参数与计费 - #120

Merged
ShourGG merged 2 commits into
mainfrom
fix/workbuddy-seedream-images-20261017
Oct 17, 2026
Merged

ShourGG merged 2 commits into
mainfrom
fix/workbuddy-seedream-images-20261017

Conversation

@ShourGG

@ShourGG ShourGG commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator

GET /v1/models advertised WorkBuddy's seedream-5.0-lite and seedream-5.0-pro, but /v1/images/generations rejected both as non-image models before contacting the upstream.

Accept those two models on the API-key image route, including mapped models, while preserving the native OpenAI OAuth/Responses restrictions. Translate common OpenAI size options to WorkBuddy resolution / aspect_ratio, omit unsupported Seedream quality, validate model-specific resolution limits, and retain reference images and provider response metadata. Seedream billing follows the provider's requested resolution tier while retaining actual output dimensions; for example, a 2816x1584 Pro 2K image stays in the 2K tariff. The existing three-tier tariff maps 1.5K to 2K.

Validation: production rejection reproduced before the fix; regression tests fail before and pass after the fix. Image/GPT/Gemini/Grok/billing unit regressions pass, including JSON/SSE and the OAuth fence. The full backend unit suite was attempted on Windows, where Linux shell and POSIX permission tests fail; Linux CI remains the authoritative full-suite check. Production candidate tests are pending.

Patch is based on the currently deployed de9c85dba to prepare an isolated image compatibility candidate. No schema, frontend, account secrets, wallet balance, or quality-cap changes.

@ShourGG
ShourGG marked this pull request as ready for review October 17, 2026 01:49
@ShourGG
ShourGG merged commit 3f394b3 into main Oct 17, 2026
18 checks passed
@ShourGG
ShourGG deleted the fix/workbuddy-seedream-images-20261017 branch October 17, 2026 01:49
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.

1 participant