fix(pingxingshijie): Seedance 1.5 Pro draft_task upscale and video task id parsing - #5
Merged
Merged
Conversation
…ubao) - Add ChannelTypePingXingShiJie (58) with default Ark base URL - New relay/channel/task/pingxingshijie package; register in GetTaskAdaptor - Admin UI: CHANNEL_OPTIONS label 平行视界, icon same as Doubao video - Channel test: unsupported like other async video task channels Made-with: Cursor
…sync flows - Route video/image/asset through PingXingShiJie base URL and unified envelope - Add upstream_kind on tasks, FetchTask branching, and asset POST /v2/asset/status polling - Extend /v1 routes for async images and assets; distributor and RelayTask fetch handling - Add docs: API reference, compatibility, downstream curl pointer; ignore local vendor API md Made-with: Cursor
…:task_id
Path2RelayMode maps any /v1/images/generations prefix to RelayModeImagesGenerations,
which is not registered in fetchRespBuilders, causing a nil respBuilder panic on
RelayTaskFetch. Prefer c.Get("relay_mode") when set so VideoFetchByID applies.
Also guard against missing fetch builder and add optional debug NDJSON logs to
.cursor/debug-1b0c95.log for verification.
Made-with: Cursor
…edream Made-with: Cursor
…ge preview Made-with: Cursor
…AIVideo + url fallback Made-with: Cursor
… upstream field Made-with: Cursor
…sted data (draft upscale) Made-with: Cursor
…nd task id parsing - Forward minimal upstream body for draft_task (no default generate_audio, no seconds->duration) - Normalize 720p/1080p for seedance-1-5-pro; clear metadata draft flag when present - Deep-extract video create task id from nested envelope/data-string responses - Document draft_task downstream format; add contract tests Made-with: Cursor
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.
Summary
PingXingShiJie (channel 58) video submit path: support Seedance 1.5 Pro draft ID upscale (
metadata.contentwithdraft_task) and fix empty upstream task id handling.Changes
draft_taskflows, do not defaultgenerate_audio: true; do not merge top-levelsecondsintoduration; strip textcontentitems; clear misleadingdraftbool from metadata when present; normalizeresolutionto720p/1080pforseedance-1-5-pro.datafields; fall back to full response body parsing.docs/pingxingshijie-api-reference.md— draft_task downstream example (nometadata.draftrequired).draft_upscale_test.go, extendedextract_video_id_test.go.Verification
go test ./relay/channel/task/pingxingshijie/...andgo buildpass locally.