feat(novita): add ByteDance Seedream text-to-image request shapes#19
Merged
Conversation
Adds three NovitaRequestShape variants for the Seedream family's synchronous image endpoints (RouterBase seeds four models across them): - SeedreamV3TextToImage (/v3/seedream-3-0-txt2img) — allows size, seed, guidance_scale, response_format, watermark; forces the fixed body `model = "seedream-3-0-t2i-250415"` server-side so a caller can't select a different checkpoint. - SeedreamV4TextToImage (/v3/seedream-4.0) — size, sequential_image_generation, max_images, watermark. - SeedreamImage (/v3/seedream-4.5, /v3/seedream-5.0-lite; identical param surface) — size, sequential_image_generation, watermark. These are synchronous endpoints (no async task); `parse_urls` already handles their `image_urls` / `images` response keys. Unit tests cover the 3.0 model injection + allow-list filtering, the shared 4.5/5.0-lite shape, and the prompt-required guard. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
I have read the Contributor License Agreement (CLA) and hereby sign the CLA. You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
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.
Adds three
NovitaRequestShapevariants for the Seedream family's synchronous image endpoints. RouterBase seeds four models across them (main repo PR bumps the submodule pointer to this branch).SeedreamV3TextToImage/v3/seedream-3-0-txt2imgSeedreamV4TextToImage/v3/seedream-4.0SeedreamImage(4.5 + 5.0-lite)/v3/seedream-4.5,/v3/seedream-5.0-liteNotes:
parse_urlsalready handles theirimage_urls/imagesresponse keys, so no response-side change.model = "seedream-3-0-t2i-250415", which is forced server-side so a caller can't select a different checkpoint via their ownmodel.source_model_id.Unit tests cover the 3.0 model-injection + allow-list filtering, the shared 4.5/5.0-lite shape, and the prompt-required guard.
cargo check/clippy/ the new tests pass.🤖 Generated with Claude Code