Skip to content

fix(workbench): recognize dated Seedance 2.0 models - #272

Open
Iams4kura wants to merge 1 commit into
HBAI-Ltd:developfrom
Iams4kura:bugfix/recognize-dated-seedance-model-20260829t160333z
Open

fix(workbench): recognize dated Seedance 2.0 models#272
Iams4kura wants to merge 1 commit into
HBAI-Ltd:developfrom
Iams4kura:bugfix/recognize-dated-seedance-model-20260829t160333z

Conversation

@Iams4kura

Copy link
Copy Markdown

Summary

  • Fixes: Selecting the built-in doubao-seedance-2-0-260128 model makes both single and batch prompt generation skip the Seedance 2 template and independent image, video, and audio reference mapping.
  • Root cause: isSeedance2Model accepts a version boundary only at the end of the identifier or before an alphabetic suffix, so it rejects the repository's standard six-digit release-date suffix after 2-0.

Regression evidence

  • Before: npx --yes --package node@24.11.1 --call 'node --import tsx --test tests/videoPromptReferences.test.ts' exited 1

  • After: npx --yes --package node@24.11.1 --call 'node --import tsx --test tests/videoPromptReferences.test.ts' exited 0

Verification

  • npx --yes --package node@24.11.1 --call 'node --import tsx --test tests/*.test.ts'
  • npx --yes --package node@24.11.1 --package yarn@1.22.22 --call 'yarn lint'
  • npx --yes --package node@24.11.1 --package yarn@1.22.22 --call 'yarn build'
  • git diff --cached --check

Scope

  • 2 files changed, +26 / -1 lines

@HBAI-Ltd

Copy link
Copy Markdown
Owner

please remove the test file

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.

2 participants