Skip to content

fix(pingxingshijie): Seedance 1.5 Pro draft_task upscale and video task id parsing - #5

Merged
Fankouzu merged 10 commits into
mainfrom
feature/channel-pingxingshijie-task
Apr 16, 2026
Merged

fix(pingxingshijie): Seedance 1.5 Pro draft_task upscale and video task id parsing#5
Fankouzu merged 10 commits into
mainfrom
feature/channel-pingxingshijie-task

Conversation

@Fankouzu

@Fankouzu Fankouzu commented Apr 16, 2026

Copy link
Copy Markdown
Owner

Summary

PingXingShiJie (channel 58) video submit path: support Seedance 1.5 Pro draft ID upscale (metadata.content with draft_task) and fix empty upstream task id handling.

Changes

  • Request: For draft_task flows, do not default generate_audio: true; do not merge top-level seconds into duration; strip text content items; clear misleading draft bool from metadata when present; normalize resolution to 720p/1080p for seedance-1-5-pro.
  • Response: Recursively extract create-task id from nested shapes and string data fields; fall back to full response body parsing.
  • Docs: docs/pingxingshijie-api-reference.md — draft_task downstream example (no metadata.draft required).
  • Tests: draft_upscale_test.go, extended extract_video_id_test.go.

Verification

go test ./relay/channel/task/pingxingshijie/... and go build pass locally.

Fankouzu added 10 commits April 15, 2026 13:44
…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
…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
@Fankouzu
Fankouzu merged commit ee071b8 into main Apr 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant