feat(storefront): 定价要素表头润饰补齐——prompt_tokens/hour/SR 等区间维度中文名

配合 pricing get_pricing_display 档位展开修复:区间定价模型(MiniMax-M3 按输入
长度分档、deepseek 忙闲时)的维度键 prompt_tokens/hour 会进表格表头,
_DIM_LABEL_POLISH 补中文润饰(输入长度(tokens)/调用小时/分辨率)。
This commit is contained in:
yumoqing 2026-09-09 12:59:09 +08:00
parent 100dbe28cd
commit 5c92b202dd

View File

@ -1299,6 +1299,8 @@ class ProductManager:
_DIM_LABEL_POLISH = {
'resolution': '分辨率', 'type': '类型', 'size': '尺寸',
'quality': '质量', 'duration': '时长', 'style': '风格',
'prompt_tokens': '输入长度(tokens)', 'total_tokens': '总长度(tokens)',
'hour': '调用小时', 'SR': '分辨率',
}
# ppid_pairs 的通用挂载标签——对表格无区分度,不作为要素列
_GENERIC_PRICE_LABELS = ('', '按量', '容量')