Repository navigation
Conversation
Add a `wavespeed_video` route protocol for video generation tasks. Routes
whose provider id is `wavespeed` or whose base URL is api.wavespeed.ai
resolve to it, and model-provider executes it as an asynchronous
start/poll protocol:
- POST {base}/api/v3/{model} with the lowered model input (prompt, image,
last_image, aspect_ratio, resolution, duration, seed, generate_audio,
camera_fixed); the model id stays in the path
- persist the returned prediction id, then poll
GET {base}/api/v3/predictions/{id}/result until completed or failed
- treat a non-200 envelope `code` as failure even on HTTP 200
- recovery of stale running tasks resumes polling the persisted id and
never resubmits
Regenerate the protocol schema fixtures and TypeScript protocol types,
and update the media video section of the architecture notes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
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.
变更摘要
wavespeed_videoroute protocol for video generation tasks. Routes whose provider id iswavespeedor whose base URL isapi.wavespeed.airesolve to it.model-providerexecutes it as asynchronous start/poll:POST {base}/api/v3/{model}(model id in the path, model input in the body), persist the prediction id, then pollGET {base}/api/v3/predictions/{id}/resultuntilcompleted/failed. A non-200 envelopecodeis treated as failure even on HTTP 200.https://api.wavespeed.aiand a model declared with thevideo_generationtask family (e.g.alibaba/wan-3.0/text-to-video,alibaba/wan-3.0/image-to-video) can now run video tasks. Owners touched:model-provider(wire + HTTP),model-routing-core(protocol resolution),media-runtime(task progress), App Server media worker (route → runner). Same shape as the existingxai_videopath; nothing deleted.i18n 影响
新增 / 变更 namespace
验证
npm run i18n:checknpm run verify:localcargo test -p model-provider -p lime-media-runtime -p model-routing-core -p app-server-protocol(622 passed vs 614 on an unmodified checkout; new: lowering, envelope/poll URL, route resolution, worker happy path / envelope error / resume-without-resubmit)cargo clippyandcargo fmt --checkon the touched cratescargo run -p app-server-protocol --bin write_schema_fixtures;node scripts/generate-protocol-types.mjs --check;node scripts/check-app-server-client-contract.mjsUnverified scope: the
app-serverandlime-agentchanges were not compiled locally. On Linux these crates do not build onmaineither (keyring-storereferencessecret_serviceundercfg(target_os = "linux")without the dependency), so they needcargo test -p app-server -p lime-agenton macOS/Windows CI. No live provider run, no GUI/Electron smoke.架构图确认
非重大原因:adds one provider protocol on the existing video chain (same shape as
xai_video); the media video section ofinternal/aiprompts/architecture.mdis updated to list it.备注
🤖 Generated with Claude Code