fix pricing migration syntax

This commit is contained in:
wlx committed 2026-09-26 01:17:05 +08:00
1 parent c05c987e4c
commit e86a7b1e79
1 file changed
+1 -1
@@ -260,7 +260,7 @@ VALUES
('tokenfoundryx', 'claude-sonnet-5', '{"input":4.896,"output":24.48,"unit":"CNY / 1M tokens","discount":3.4,"discountLabel":"3.4折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":2,"output":10,"cachedInput":0.2},"cachedInput":0.4896}'::jsonb), ('tokenfoundryx', 'claude-sonnet-5', '{"input":4.896,"output":24.48,"unit":"CNY / 1M tokens","discount":3.4,"discountLabel":"3.4折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":2,"output":10,"cachedInput":0.2},"cachedInput":0.4896}'::jsonb),
('tokenfoundryx', 'gpt-5.6-sol', '{"input":9.72,"output":58.32,"unit":"CNY / 1M tokens","discount":2.7,"discountLabel":"2.7折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":5,"output":30,"cachedInput":0.5},"cachedInput":0.972}'::jsonb), ('tokenfoundryx', 'gpt-5.6-sol', '{"input":9.72,"output":58.32,"unit":"CNY / 1M tokens","discount":2.7,"discountLabel":"2.7折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":5,"output":30,"cachedInput":0.5},"cachedInput":0.972}'::jsonb),
('tokenfoundryx', 'gpt-5.6-terra', '{"input":3.888,"output":23.328,"unit":"CNY / 1M tokens","discount":2.7,"discountLabel":"2.7折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":2,"output":12,"cachedInput":0.2},"cachedInput":0.3888}'::jsonb), ('tokenfoundryx', 'gpt-5.6-terra', '{"input":3.888,"output":23.328,"unit":"CNY / 1M tokens","discount":2.7,"discountLabel":"2.7折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":2,"output":12,"cachedInput":0.2},"cachedInput":0.3888}'::jsonb),
('tokenfoundryx', 'gpt-6-astra', '{"input":19.44,"output":97.2,"unit":"CNY / 1M tokens","discount":2.7,"discountLabel":"2.7折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":10,"output":50,"cachedInput":1},"cachedInput":1.944}'::jsonb), ('tokenfoundryx', 'gpt-6-astra', '{"input":19.44,"output":97.2,"unit":"CNY / 1M tokens","discount":2.7,"discountLabel":"2.7折","exchangeRate":7.2,"priceSource":"芯化兰德报价_2026.09.09.xlsx","listPriceUsd":{"input":10,"output":50,"cachedInput":1},"cachedInput":1.944}'::jsonb)
) )
UPDATE model_catalog AS m UPDATE model_catalog AS m
SET pricing = price_plan.pricing, updated_at = now() SET pricing = price_plan.pricing, updated_at = now()