Skip to content

fix(doubao): forward Seedance draft_task content to Volcengine - #3

Merged
Fankouzu merged 1 commit into
mainfrom
feat/doubao-seedance-draft-task-content
Apr 11, 2026
Merged

fix(doubao): forward Seedance draft_task content to Volcengine#3
Fankouzu merged 1 commit into
mainfrom
feat/doubao-seedance-draft-task-content

Conversation

@Fankouzu

Copy link
Copy Markdown
Owner

Summary

Doubao/Ark video requests can include metadata.content items with type: "draft_task" and draft_task: { "id": "..." }. The previous ContentItem struct had no field for draft_task, so JSON unmarshaling dropped the nested id before the request was sent upstream.

Changes

  • Add DraftTaskRef with id and DraftTask *DraftTaskRef on ContentItem so draft_task round-trips through UnmarshalMetadatacommon.Marshal.

Notes

  • Clients can keep sending a default prompt text as required by the gateway; no change to validation.
  • Only relay/channel/task/doubao/adaptor.go is included.

Made with Cursor

Content metadata items with type draft_task include a nested draft_task.id
field for Seedance draft-to-video. The previous ContentItem struct dropped
this field on JSON round-trip; add DraftTaskRef so upstream receives it.

Made-with: Cursor
@Fankouzu

Copy link
Copy Markdown
Owner Author

@codex

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