Skip to content

fix(doubao): avoid mixing draft_task with prompt text for Seedance - #4

Merged
Fankouzu merged 1 commit into
mainfrom
fix/doubao-seedance-draft-no-text-mix
Apr 11, 2026
Merged

fix(doubao): avoid mixing draft_task with prompt text for Seedance#4
Fankouzu merged 1 commit into
mainfrom
fix/doubao-seedance-draft-no-text-mix

Conversation

@Fankouzu

Copy link
Copy Markdown
Owner

Problem

Volcengine returns draft_task content cannot be mixed with other content types when content includes both draft_task and text. new-api always appended prompt as a text content item after merging metadata.

Change

If metadata.content contains type: draft_task, skip appending the prompt as text and strip any text entries from metadata. Root prompt remains required for gateway validation but is not forwarded as Ark content in this mode.

Depends on

Builds on DraftTaskRef / draft_task field support (see related PR #3 if not merged yet). This branch is based on feat/doubao-seedance-draft-task-content.

Made with Cursor

Ark rejects draft_task mixed with other content types; the adaptor always
appended prompt as a text item. Omit that append when metadata.content
includes draft_task.

Made-with: Cursor
@Fankouzu
Fankouzu merged commit 49a3baa into main Apr 11, 2026
1 check 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