Repository navigation
fix(images): 适配 WorkBuddy Seedream 生图参数与计费 - #120
Merged
Merged
Conversation
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.
GET /v1/modelsadvertised WorkBuddy'sseedream-5.0-liteandseedream-5.0-pro, but/v1/images/generationsrejected 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
sizeoptions to WorkBuddyresolution/aspect_ratio, omit unsupported Seedreamquality, 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
de9c85dbato prepare an isolated image compatibility candidate. No schema, frontend, account secrets, wallet balance, or quality-cap changes.