Skip to content

feat: add model prompt length limits - #34

Open
nblog wants to merge 3 commits into
alibaba:mainfrom
nblog:fix/model-prompt-limits
Open

feat: add model prompt length limits#34
nblog wants to merge 3 commits into
alibaba:mainfrom
nblog:fix/model-prompt-limits

Conversation

@nblog

@nblog nblog commented Jun 10, 2026

Copy link
Copy Markdown

Summary

  • Move Playground prompt length limits into model catalog params using params.prompt.maxLength.
  • Make Playground prompt input and backend generation validation read the generated model catalog.
  • Add prompt limits for Seedance, PixVerse, and HappyHorse while preserving the 2000-character default fallback.
  • Change Seedance 2.0 T2V/I2V/R2V default resolution to 720p.

Test plan

  • .venv/bin/python scripts/validate_model_catalog.py
  • /usr/bin/pytest -q tests/test_playground_prompt_limits.py
  • git diff --cached --check
  • staged diff sensitive scan
  • Frontend Vitest not rerun in this environment: WSL has no Linux Node, and Windows Node cannot load the Linux Rollup optional package from the existing node_modules.

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