fix(pricing): correct YAML pricing_data format per pricing skill spec - unit_values + fields + pricings
This commit is contained in:
parent
e583189321
commit
520accdade
@ -1,42 +1,88 @@
|
|||||||
-- ============================================================
|
-- ============================================================
|
||||||
-- MiniMax-H3 — 定价记录(修正版)
|
-- MiniMax-H3 — 定价记录(按pricing skill规范)
|
||||||
-- 1个 pricing_program + 2个 pricing_program_timing
|
-- 1个 pricing_program + 2个 pricing_program_timing
|
||||||
|
-- pricing_data: YAML格式 {unit_values, fields, pricings}
|
||||||
-- ============================================================
|
-- ============================================================
|
||||||
|
|
||||||
-- === pricing_program (1条) ===
|
-- === pricing_program ===
|
||||||
INSERT IGNORE INTO pricing_program (id, name, ownerid, providerid, pricing_belong, description) VALUES (
|
INSERT IGNORE INTO pricing_program (id, name, ownerid, providerid, pricing_belong, description) VALUES (
|
||||||
'minimax_h3',
|
'minimax_h3',
|
||||||
'MiniMax-H3',
|
'MiniMax-H3',
|
||||||
'platform',
|
'platform',
|
||||||
'minimax',
|
'minimax',
|
||||||
'provider',
|
'provider',
|
||||||
'MiniMax-H3 视频生成模型,按分辨率计费:2K 0.80元/秒,768P 0.50元/秒'
|
'MiniMax-H3 视频生成模型,按分辨率+时长计费。2K 0.80元/秒,768P 0.50元/秒。'
|
||||||
);
|
);
|
||||||
|
|
||||||
-- === pricing_program_timing (2条: 2K + 768P) ===
|
-- === pricing_program_timing: 2K (0.80元/秒) ===
|
||||||
|
-- pricing_data 是 YAML 格式,用 yaml.dump 生成的转义字符串
|
||||||
-- 2K: 0.80 元/秒
|
|
||||||
INSERT IGNORE INTO pricing_program_timing (id, ppid, name, pricing_data, enabled_date, expired_date) VALUES (
|
INSERT IGNORE INTO pricing_program_timing (id, ppid, name, pricing_data, enabled_date, expired_date) VALUES (
|
||||||
'minimax_h3_2k',
|
'minimax_h3_2k',
|
||||||
'minimax_h3',
|
'minimax_h3',
|
||||||
'MiniMax-H3-2K',
|
'MiniMax-H3-2K',
|
||||||
'resolution: 2K
|
'unit_values:
|
||||||
unit: second
|
秒: 1
|
||||||
price: 0.80
|
fields:
|
||||||
currency: CNY',
|
price_factors:
|
||||||
|
type: string
|
||||||
|
role: factor
|
||||||
|
label: 计价因子
|
||||||
|
unit_prices:
|
||||||
|
type: float
|
||||||
|
role: factor
|
||||||
|
label: 单位定价
|
||||||
|
unit:
|
||||||
|
type: string
|
||||||
|
role: factor
|
||||||
|
label: 计价单位
|
||||||
|
resolution:
|
||||||
|
type: string
|
||||||
|
role: filter
|
||||||
|
label: 分辨率
|
||||||
|
options:
|
||||||
|
- 2K
|
||||||
|
- 768P
|
||||||
|
pricings:
|
||||||
|
- price_factors: duration
|
||||||
|
unit_prices: 0.80
|
||||||
|
unit: 秒
|
||||||
|
resolution: 2K',
|
||||||
'2025-01-01',
|
'2025-01-01',
|
||||||
'9999-12-31'
|
'9999-12-31'
|
||||||
);
|
);
|
||||||
|
|
||||||
-- 768P: 0.50 元/秒
|
-- === pricing_program_timing: 768P (0.50元/秒) ===
|
||||||
INSERT IGNORE INTO pricing_program_timing (id, ppid, name, pricing_data, enabled_date, expired_date) VALUES (
|
INSERT IGNORE INTO pricing_program_timing (id, ppid, name, pricing_data, enabled_date, expired_date) VALUES (
|
||||||
'minimax_h3_768p',
|
'minimax_h3_768p',
|
||||||
'minimax_h3',
|
'minimax_h3',
|
||||||
'MiniMax-H3-768P',
|
'MiniMax-H3-768P',
|
||||||
'resolution: 768P
|
'unit_values:
|
||||||
unit: second
|
秒: 1
|
||||||
price: 0.50
|
fields:
|
||||||
currency: CNY',
|
price_factors:
|
||||||
|
type: string
|
||||||
|
role: factor
|
||||||
|
label: 计价因子
|
||||||
|
unit_prices:
|
||||||
|
type: float
|
||||||
|
role: factor
|
||||||
|
label: 单位定价
|
||||||
|
unit:
|
||||||
|
type: string
|
||||||
|
role: factor
|
||||||
|
label: 计价单位
|
||||||
|
resolution:
|
||||||
|
type: string
|
||||||
|
role: filter
|
||||||
|
label: 分辨率
|
||||||
|
options:
|
||||||
|
- 2K
|
||||||
|
- 768P
|
||||||
|
pricings:
|
||||||
|
- price_factors: duration
|
||||||
|
unit_prices: 0.50
|
||||||
|
unit: 秒
|
||||||
|
resolution: 768P',
|
||||||
'2025-01-01',
|
'2025-01-01',
|
||||||
'9999-12-31'
|
'9999-12-31'
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user