feat(amux): add Doubao-Seedance video provider (async media proxy)#12
Merged
Conversation
New `amux` provider mirroring the Novita media proxy: submit to amux's
universal `POST /v1/video/generations`, poll `GET /v1/video/generations/{id}`
until completed (root `url`) or failed (`error.message`). AmuxRequestShape
covers seedance2 text-to-video and image-to-video. Wired into
MediaProxyConfig (provider = "amux"). Auth via AMUX_API_KEY / AMUX_API_BASE.
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 a new amux media provider so RouterBase can route ByteDance Doubao-Seedance 2.0 video through the gateway, mirroring the existing Novita media-proxy path.
What
tensorzero-core/src/providers/amux.rs—AmuxProvider::infer_media_proxy: submit to amux's universalPOST /v1/video/generations, pollGET /v1/video/generations/{task_id}untilcompleted(rooturl) orfailed(error.message), then fire the RouterBase media callback.AmuxRequestShapecoversseedance2_text_to_videoandseedance2_image_to_video(builds the universal{model, prompt, image?, seconds?, metadata{ratio,resolution,seed,…}}body). Auth viaAMUX_API_KEY/AMUX_API_BASE(defaulthttps://api.amux.ai).variant/media.rs— newMediaProxyConfig::Amuxarm (provider tagamux) wired intoinfer+validate.providers/mod.rs— register the module.Structurally a close mirror of
providers/novita.rs; the difference is amux's universal endpoints are fixed (model id rides in the request body viaproxy.path) rather than Novita's per-modelasync/{model}URL path.Verification
cargo check -p tensorzero-core✓,cargo clippy -p tensorzero-core✓ (amux.rs: 0 warnings),cargo fmt✓.Consumer
RouterBase parent PR: routes
source='amux'/proxy.provider="amux"variants here (regeneratedtensorzero.toml), seeds the Seedance models, and ships user docs.🤖 Generated with Claude Code