feat(models): minimax-h3 改按秒计价,按秒计价改为目录驱动

This commit is contained in:
2026-08-08 22:20:40 +08:00
parent 6d17caaf80
commit 4c0706fa91
2 changed files with 14 additions and 5 deletions
+5 -3
View File
@@ -40,10 +40,12 @@ const isVideo = computed(() => entry.value?.type === 'video')
// Display tiers in canonical ascending order (720p before 1080p; 1K<2K<4K)
// regardless of how the catalog/stored record happens to list them.
const resolutions = computed(() => sortResolutions(entry.value?.resolutions || []))
// 按秒计价的视频模型(一个 /s 价,实付 = 分辨率价 + 每秒价 × 秒数)。
// 按秒计价的视频模型(一个 /s 价,实付 = 分辨率价 + 每秒价 × 秒数)。目录用
// per_second 声明;已入库的模型则看它是否已存了 per_second 价。
const isPerSecond = computed(() => {
const id = entry.value?.id || ''
return id.startsWith('seedance') || id === 'grok-video'
const e = entry.value
if (!e) return false
return !!e.per_second || e.duration_prices?.per_second != null
})
const durationTiers = computed(() => {