mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-04 00:42:14 +00:00
模型广场:增加渠道分时段计价展示
- 阶梯表查询附带分时倍率时段:时段取自计费解析到的渠道定价, 每个时段的倍率由计费的 resolvedChannelTimeMultiplier 在时段内取值, 分组价卡覆盖或配置非法时自然不出现;倍率为 1 的时段不列 - 广场模型条目新增 time_pricing(时区 + 时段 + 倍率) - 前端把分时时段展开为独立行:模型名旁标注时段,价格按时段倍率折算, 倍率列显示生效倍率;时区与计算口径放在提示中
This commit is contained in:
1 parent
ecce0769c0
commit
83d4eb6a43
11 files changed
+390
-26
No files matched your search
@@ -27,14 +27,30 @@ export interface PlazaOfficialPricing {
|
||||
*/
|
||||
export type PlazaLongContextBasis = 'whole_request' | 'marginal'
|
||||
|
||||
/** 分时倍率时段:配置时区当天 [start_time, end_time) 内整单实付乘 multiplier。 */
|
||||
export interface PlazaTimePricingPeriod {
|
||||
start_time: string
|
||||
end_time: string
|
||||
multiplier: number
|
||||
}
|
||||
|
||||
/** 计费会生效的分时倍率(仅倍率 ≠ 1 的时段,已按开始时间升序)。 */
|
||||
export interface PlazaTimePricing {
|
||||
/** IANA 时区名,如 Asia/Shanghai。 */
|
||||
timezone: string
|
||||
periods: PlazaTimePricingPeriod[]
|
||||
}
|
||||
|
||||
export interface PlazaModel {
|
||||
name: string
|
||||
platform: string
|
||||
/** 实收口径的展示定价:多档时 intervals 为各档绝对单价(已由计费服务折算)。 */
|
||||
/** 实收口径的展示定价:多档时 intervals 为各档绝对单价(已由计费服务折算);均为标准时段价。 */
|
||||
pricing: UserSupportedModelPricing | null
|
||||
official_pricing: PlazaOfficialPricing | null
|
||||
/** 仅多档模型返回。 */
|
||||
long_context_basis?: PlazaLongContextBasis
|
||||
/** 仅配置了分时倍率的模型返回。 */
|
||||
time_pricing?: PlazaTimePricing
|
||||
}
|
||||
|
||||
export interface ModelPlazaGroup {
|
||||
|
||||
Reference in new issue
Block a user