fix(playground): custom 上游的 seedance* 模型不再吃 seedance 默认上限

isSeedanceModel 的正则把 custom provider 的自定义命名也算成了 leonardo
seedance,导致音频上限兜底成 3、总张数被重复相加。provider=custom
也排除出 seedance 判定(videoCaps 同步)。

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
2026-10-14 15:14:58 +08:00
co-authored by Devin
parent e69455fbfc
commit ab8ddc8354
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -144,8 +144,10 @@ const maxAudiosRaw = computed(() => {
return m > 0 ? m : null
})
// creativefabrica 上游只收图片参考,没有首尾帧/视频/音频,虽叫 seedance 也要排除。
// custom 上游模型 id 也可以 seedance 开头(管理员自定义命名),它们的上限
// 由模型字段显式声明,不走 seedance 默认 3/3。
const isSeedanceModel = computed(() =>
/^seedance/.test(model.value?.id || '') && (model.value?.provider || '') !== 'creativefabrica')
/^seedance/.test(model.value?.id || '') && !['creativefabrica', 'custom'].includes(model.value?.provider || ''))
// 支持图片以外的参考资产(视频/音频)的模型:seedance 系 + 预设声明了音视频上限的
const supportsMediaRefs = computed(() =>
isSeedanceModel.value || maxVideosRaw.value > 0 || maxAudiosRaw.value > 0)