fix: reconcile source currencies and retail token pricing

This commit is contained in:
wlx committed 2026-10-12 17:42:30 +08:00
1 parent ea9069e332
commit 512ca52262
12 files changed
+458 -12

No files matched your search

@@ -0,0 +1,44 @@
-- Verified 2026-10-12: current source currency; purchase discount + 1 point.
-- Exact old JSON guard preserves later manual edits. Does not change enabled status, credentials or balances.
-- Dynamic, missing-source and extreme-increase rows are deliberately excluded.
WITH correction(provider_code, upstream_model, old_pricing, new_pricing) AS (VALUES
('apipro', 'deepseek-v4-flash', '{"unit":"CNY / 1M tokens","input":0.66924,"output":1.33848,"discount":6.5,"cachedInput":0.13572,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":0.143,"output":0.286,"cachedInput":0.029},"discountLabel":"6.5折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":2.005848,"output":6.017076,"discount":6.5,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"6.5折","cachedInput":0.2005848,"listPriceUsd":{"input":0.4286,"output":1.2856999999999206,"cachedInput":0.04286}}'::jsonb),
('apipro', 'deepseek-v4-pro', '{"unit":"CNY / 1M tokens","input":8.0262,"output":16.04772,"discount":6.5,"cachedInput":0.66924,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":1.715,"output":3.429,"cachedInput":0.143},"discountLabel":"6.5折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":8.0262,"output":16.04772,"discount":6.5,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"6.5折","cachedInput":0.66924,"listPriceUsd":{"input":1.715,"output":3.429000000000015,"cachedInput":0.14299999999957}}'::jsonb),
('apipro', 'kimi-k3', '{"unit":"CNY / 1M tokens","input":13.371696,"output":66.857076,"discount":6.5,"cachedInput":1.337076,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":2.8572,"output":14.2857,"cachedInput":0.2857},"discountLabel":"6.5折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":13.371696,"output":66.857076,"discount":6.5,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"6.5折","cachedInput":1.337076,"listPriceUsd":{"input":2.8572,"output":14.28570000000012,"cachedInput":0.2856999996}}'::jsonb),
('apihub', 'kimi-k3', '{"unit":"CNY / 1M tokens","input":40.76352,"output":203.8176,"discount":2.8,"priceSource":"芯化兰德报价_2026.09.09.xlsx","exchangeRate":7.2,"listPriceUsd":{"input":20.22,"output":101.1},"discountLabel":"2.8折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":5.6,"output":28.0,"discount":2.8,"priceSource":"ApiHub 当前人民币原价 · 2026-10-12","exchangeRate":1.0,"discountLabel":"2.8折","listPriceCny":{"input":20.0,"output":100.0}}'::jsonb),
('tokenfoundryx', 'claude-fable-5-1', '{"unit":"CNY / 1M tokens","input":36,"output":180,"discount":5,"cachedInput":0.9,"priceSource":"芯化兰德报价_2026.09.09.xlsx","exchangeRate":7.2,"listPriceUsd":{"input":10,"output":50,"cachedInput":0.25},"discountLabel":"5.0折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":36.0,"output":180.0,"discount":5.0,"priceSource":"TokenFoundryX 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"5折","cachedInput":3.6,"listPriceUsd":{"input":10.0,"output":50.0,"cachedInput":1.0}}'::jsonb),
('apipro', 'claude-opus-5', '{"unit":"CNY / 1M tokens","input":20.16,"output":100.8,"discount":5.6,"cachedInput":1.008,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":5,"output":25,"cachedInput":0.25},"discountLabel":"5.6折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":20.16,"output":100.8,"discount":5.6,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"5.6折","cachedInput":2.016,"listPriceUsd":{"input":5.0,"output":25.0,"cachedInput":0.5}}'::jsonb),
('apipro', 'deepseek-v3', '{"unit":"CNY / 1M tokens","input":1.34215848,"output":5.368428,"discount":6.5,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":0.286786,"output":1.1471},"discountLabel":"6.5折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":1.34215714,"output":5.36862857,"discount":6.5,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"6.5折","listPriceUsd":{"input":0.286785714,"output":1.147142856}}'::jsonb),
('apipro', 'deepseek-v3-0324', '{"unit":"CNY / 1M tokens","input":1.34215848,"output":5.368428,"discount":6.5,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":0.286786,"output":1.1471},"discountLabel":"6.5折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":1.34215714,"output":5.36862857,"discount":6.5,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"6.5折","listPriceUsd":{"input":0.286785714,"output":1.147142856}}'::jsonb),
('apipro', 'deepseek-v3.1', '{"unit":"CNY / 1M tokens","input":2.68431228,"output":8.052876,"discount":6.5,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":0.573571,"output":1.7207},"discountLabel":"6.5折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":2.68431428,"output":8.05294285,"discount":6.5,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"6.5折","listPriceUsd":{"input":0.573571428,"output":1.720714284}}'::jsonb),
('apipro', 'deepseek-v3.2', '{"unit":"CNY / 1M tokens","input":1.34215848,"output":2.01323772,"discount":6.5,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":0.286786,"output":0.430179},"discountLabel":"6.5折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":1.34215714,"output":2.01323571,"discount":6.5,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"6.5折","listPriceUsd":{"input":0.286785714,"output":0.430178571}}'::jsonb),
('apipro', 'deepseek-v4-flash-0731', '{"unit":"CNY / 1M tokens","input":0.66924,"output":1.33848,"discount":6.5,"cachedInput":0.13572,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":0.143,"output":0.286,"cachedInput":0.029},"discountLabel":"6.5折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":2.005848,"output":6.017076,"discount":6.5,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"6.5折","cachedInput":0.2005848,"listPriceUsd":{"input":0.4286,"output":1.2856999999999206,"cachedInput":0.04286}}'::jsonb),
('apipro', 'gemini-2.5-flash', '{"unit":"CNY / 1M tokens","input":1.2096,"output":10.08,"discount":5.6,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":0.3,"output":2.5},"discountLabel":"5.6折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":1.2096,"output":10.08,"discount":5.6,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"5.6折","listPriceUsd":{"input":0.3,"output":2.4999999999}}'::jsonb),
('tokenfoundryx', 'gemini-2.5-flash-lite', '{"unit":"CNY / 1M tokens","input":540,"output":2160,"cachedInput":null,"priceSource":"TokenFoundryX 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":75,"output":300},"discountLabel":"未提供"}'::jsonb, '{"unit":"CNY / 1M tokens","input":189.0,"output":756.0,"priceSource":"TokenFoundryX 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"3.5折","discount":3.5,"listPriceUsd":{"input":75.0,"output":300.0}}'::jsonb),
('tokenfoundryx', 'gemini-2.5-pro', '{"unit":"CNY / 1M tokens","input":540,"output":4320,"cachedInput":null,"priceSource":"TokenFoundryX 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":75,"output":600},"discountLabel":"未提供"}'::jsonb, '{"unit":"CNY / 1M tokens","input":3.15,"output":25.2,"priceSource":"TokenFoundryX 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"3.5折","discount":3.5,"cachedInput":0.315,"listPriceUsd":{"input":1.25,"output":10.0,"cachedInput":0.125}}'::jsonb),
('apipro', 'gemini-3.5-flash-lite', '{"unit":"CNY / 1M tokens","input":1.2096,"output":10.08,"discount":5.6,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":0.3,"output":2.5},"discountLabel":"5.6折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":1.2096,"output":10.08,"discount":5.6,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"5.6折","listPriceUsd":{"input":0.3,"output":2.4999999999999}}'::jsonb),
('tokenfoundryx', 'gemini-3.7-flash', '{"unit":"CNY / 1M tokens","input":5.4,"output":27,"cachedInput":0.54,"priceSource":"TokenFoundryX 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":0.75,"output":3.75,"cachedInput":0.075},"discountLabel":"未提供"}'::jsonb, '{"unit":"CNY / 1M tokens","input":1.89,"output":9.45,"priceSource":"TokenFoundryX 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"3.5折","discount":3.5,"cachedInput":0.189,"listPriceUsd":{"input":0.75,"output":3.75,"cachedInput":0.075}}'::jsonb),
('tokenfoundryx', 'gemini-3.8-flash', '{"unit":"CNY / 1M tokens","input":5.4,"output":27,"cachedInput":0.54,"priceSource":"TokenFoundryX 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":0.75,"output":3.75,"cachedInput":0.075},"discountLabel":"未提供"}'::jsonb, '{"unit":"CNY / 1M tokens","input":1.89,"output":9.45,"priceSource":"TokenFoundryX 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"3.5折","discount":3.5,"cachedInput":0.189,"listPriceUsd":{"input":0.75,"output":3.75,"cachedInput":0.075}}'::jsonb),
('apihub', 'glm-4.7', '{"unit":"CNY / 1M tokens","input":1.3392,"output":4.9104,"discount":3.1,"cachedInput":0.24552,"priceSource":"芯化兰德报价_2026.09.09.xlsx","exchangeRate":7.2,"listPriceUsd":{"input":0.6,"output":2.2,"cachedInput":0.11},"discountLabel":"3.1折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":0.62,"output":2.48,"discount":3.1,"priceSource":"ApiHub 当前人民币原价 · 2026-10-12","exchangeRate":1.0,"discountLabel":"3.1折","cachedInput":0.248,"listPriceCny":{"input":2.0,"output":8.0,"cachedInput":0.8}}'::jsonb),
('apihub', 'glm-5', '{"unit":"CNY / 1M tokens","input":8.86104,"output":39.821112,"discount":3.1,"cachedInput":1.77444,"priceSource":"芯化兰德报价_2026.09.09.xlsx","exchangeRate":7.2,"listPriceUsd":{"input":3.97,"output":17.841,"cachedInput":0.795},"discountLabel":"3.1折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":1.24,"output":5.58,"discount":3.1,"priceSource":"ApiHub 当前人民币原价 · 2026-10-12","exchangeRate":1.0,"discountLabel":"3.1折","cachedInput":0.31,"listPriceCny":{"input":4.0,"output":18.0,"cachedInput":1.0}}'::jsonb),
('apihub', 'glm-5.1', '{"unit":"CNY / 1M tokens","input":13.237992,"output":52.9542,"discount":3.1,"cachedInput":1.323576,"priceSource":"芯化兰德报价_2026.09.09.xlsx","exchangeRate":7.2,"listPriceUsd":{"input":5.931,"output":23.725,"cachedInput":0.593},"discountLabel":"3.1折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":1.86,"output":7.44,"discount":3.1,"priceSource":"ApiHub 当前人民币原价 · 2026-10-12","exchangeRate":1.0,"discountLabel":"3.1折","cachedInput":0.403,"listPriceCny":{"input":6.0,"output":24.0,"cachedInput":1.3}}'::jsonb),
('apipro', 'glm-5.2', '{"unit":"CNY / 1M tokens","input":5.348304,"output":18.72,"discount":6.5,"cachedInput":1.337076,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":1.1428,"output":4,"cachedInput":0.2857},"discountLabel":"6.5折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":5.348304,"output":18.72,"discount":6.5,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"6.5折","cachedInput":1.337076,"listPriceUsd":{"input":1.1428,"output":3.9999999999995,"cachedInput":0.2857}}'::jsonb),
('apihub', 'glm-5.2', '{"unit":"CNY / 1M tokens","input":17.28,"output":60.56208,"discount":3,"cachedInput":4.32432,"priceSource":"芯化兰德报价_2026.09.09.xlsx","exchangeRate":7.2,"listPriceUsd":{"input":8,"output":28.038,"cachedInput":2.002},"discountLabel":"3.0折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":2.4,"output":8.4,"discount":3.0,"priceSource":"ApiHub 当前人民币原价 · 2026-10-12","exchangeRate":1.0,"discountLabel":"3折","cachedInput":0.705,"listPriceCny":{"input":8.0,"output":28.0,"cachedInput":2.35}}'::jsonb),
('apipro', 'glm-5.3', '{"unit":"CNY / 1M tokens","input":5.348304,"output":18.72,"discount":6.5,"cachedInput":1.337076,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":1.1428,"output":4,"cachedInput":0.2857},"discountLabel":"6.5折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":5.348304,"output":18.72,"discount":6.5,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"6.5折","cachedInput":1.337076,"listPriceUsd":{"input":1.1428,"output":3.9999999999995,"cachedInput":0.2857}}'::jsonb),
('apihub', 'glm-5.3-flash', '{"unit":"CNY / 1M tokens","input":5.76,"output":20.16,"cachedInput":1.656,"priceSource":"ApiHub 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":0.8,"output":2.8,"cachedInput":0.23},"discountLabel":"未提供"}'::jsonb, '{"unit":"CNY / 1M tokens","input":0.24,"output":0.84,"priceSource":"ApiHub 当前人民币原价 · 2026-10-12","exchangeRate":1.0,"discountLabel":"3折","discount":3.0,"cachedInput":0.069,"listPriceCny":{"input":0.8,"output":2.8,"cachedInput":0.23}}'::jsonb),
('tokenfoundryx', 'gpt-5.4', '{"unit":"CNY / 1M tokens","input":128.34,"output":770.04,"cachedInput":12.6,"priceSource":"TokenFoundryX 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":17.825,"output":106.95,"cachedInput":1.75},"discountLabel":"未提供"}'::jsonb, '{"unit":"CNY / 1M tokens","input":34.6518,"output":207.9108,"priceSource":"TokenFoundryX 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"2.7折","discount":2.7,"cachedInput":3.40200977,"listPriceUsd":{"input":17.825,"output":106.95,"cachedInput":1.750005025}}'::jsonb),
('tokenfoundryx', 'gpt-5.4-mini', '{"unit":"CNY / 1M tokens","input":37.8,"output":226.8,"cachedInput":3.78,"priceSource":"TokenFoundryX 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":5.25,"output":31.5,"cachedInput":0.525},"discountLabel":"未提供"}'::jsonb, '{"unit":"CNY / 1M tokens","input":10.206,"output":61.236,"priceSource":"TokenFoundryX 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"2.7折","discount":2.7,"cachedInput":1.0206,"listPriceUsd":{"input":5.25,"output":31.5,"cachedInput":0.525}}'::jsonb),
('tokenfoundryx', 'gpt-5.5', '{"unit":"CNY / 1M tokens","input":36,"output":216,"cachedInput":3.6,"priceSource":"TokenFoundryX 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":5,"output":30,"cachedInput":0.5},"discountLabel":"未提供"}'::jsonb, '{"unit":"CNY / 1M tokens","input":9.72,"output":58.32,"priceSource":"TokenFoundryX 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"2.7折","discount":2.7,"cachedInput":0.972,"listPriceUsd":{"input":5.0,"output":30.0,"cachedInput":0.5}}'::jsonb),
('apipro', 'grok-3-mini', '{"unit":"CNY / 1M tokens","input":1.2096,"output":2.016,"discount":5.6,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":0.3,"output":0.5},"discountLabel":"5.6折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":1.2096,"output":2.016,"discount":5.6,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"5.6折","listPriceUsd":{"input":0.3,"output":0.5000000000001}}'::jsonb),
('apihub', 'kimi-k2.5', '{"unit":"CNY / 1M tokens","input":8.00352,"output":41.97312,"discount":2.8,"priceSource":"芯化兰德报价_2026.09.09.xlsx","exchangeRate":7.2,"listPriceUsd":{"input":3.97,"output":20.82},"discountLabel":"2.8折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":1.12,"output":5.88,"discount":2.8,"priceSource":"ApiHub 当前人民币原价 · 2026-10-12","exchangeRate":1.0,"discountLabel":"2.8折","listPriceCny":{"input":4.0,"output":21.0}}'::jsonb),
('apipro', 'kimi-k2.6', '{"unit":"CNY / 1M tokens","input":4.345848,"output":18.051228,"discount":6.5,"cachedInput":0.735228,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":0.9286,"output":3.8571,"cachedInput":0.1571},"discountLabel":"6.5折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":4.345848,"output":18.051228,"discount":6.5,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"6.5折","cachedInput":0.735228,"listPriceUsd":{"input":0.9286,"output":3.857100000000277,"cachedInput":0.1570999999997104}}'::jsonb),
('apihub', 'kimi-k2.6', '{"unit":"CNY / 1M tokens","input":12.989088,"output":53.95824,"discount":2.8,"priceSource":"芯化兰德报价_2026.09.09.xlsx","exchangeRate":7.2,"listPriceUsd":{"input":6.443,"output":26.765},"discountLabel":"2.8折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":1.82,"output":7.56,"discount":2.8,"priceSource":"ApiHub 当前人民币原价 · 2026-10-12","exchangeRate":1.0,"discountLabel":"2.8折","cachedInput":0.308,"listPriceCny":{"input":6.5,"output":27.0,"cachedInput":1.1}}'::jsonb),
('apihub', 'kimi-k2.7-code', '{"unit":"CNY / 1M tokens","input":18.236736,"output":75.757248,"discount":2.8,"cachedInput":3.64896,"priceSource":"芯化兰德报价_2026.09.09.xlsx","exchangeRate":7.2,"listPriceUsd":{"input":9.046,"output":37.578,"cachedInput":1.81},"discountLabel":"2.8折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":1.82,"output":7.56,"discount":2.8,"priceSource":"ApiHub 当前人民币原价 · 2026-10-12","exchangeRate":1.0,"discountLabel":"2.8折","cachedInput":0.21560084,"listPriceCny":{"input":6.5,"output":27.0,"cachedInput":0.770003}}'::jsonb),
('apihub', 'qwen3.6-plus', '{"unit":"CNY / 1M tokens","input":4.437216,"output":26.551872,"discount":3.1,"priceSource":"芯化兰德报价_2026.09.09.xlsx","exchangeRate":7.2,"listPriceUsd":{"input":1.988,"output":11.896},"discountLabel":"3.1折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":0.62,"output":14.88,"discount":3.1,"priceSource":"ApiHub 当前人民币原价 · 2026-10-12","exchangeRate":1.0,"discountLabel":"3.1折","cachedInput":0.062,"listPriceCny":{"input":2.0,"output":48.0,"cachedInput":0.2}}'::jsonb),
('apihub', 'qwen3.7-max', '{"unit":"CNY / 1M tokens","input":26.587584,"output":79.76052,"discount":3.1,"cachedInput":2.660544,"priceSource":"芯化兰德报价_2026.09.09.xlsx","exchangeRate":7.2,"listPriceUsd":{"input":11.912,"output":35.735,"cachedInput":1.192},"discountLabel":"3.1折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":3.72,"output":11.16,"discount":3.1,"priceSource":"ApiHub 当前人民币原价 · 2026-10-12","exchangeRate":1.0,"discountLabel":"3.1折","cachedInput":0.744,"listPriceCny":{"input":12.0,"output":36.0,"cachedInput":2.4}}'::jsonb),
('apipro', 'qwen3.8-max', '{"unit":"CNY / 1M tokens","input":8.022924,"output":24.068772,"discount":6.5,"cachedInput":1.002924,"priceSource":"APIPro 模型广场","exchangeRate":7.2,"listPriceUsd":{"input":1.7143,"output":5.1429,"cachedInput":0.2143},"discountLabel":"6.5折"}'::jsonb, '{"unit":"CNY / 1M tokens","input":8.022924,"output":24.068772,"discount":6.5,"priceSource":"APIPro 当前美元原价 · 2026-10-12","exchangeRate":7.2,"discountLabel":"6.5折","cachedInput":1.002924,"listPriceUsd":{"input":1.7143,"output":5.1429,"cachedInput":0.2143000000001658}}'::jsonb)
)
UPDATE model_catalog m SET pricing=c.new_pricing, updated_at=now()
FROM model_providers p, correction c
WHERE m.provider_id=p.id AND p.code=c.provider_code AND m.upstream_model=c.upstream_model
AND m.deleted_at IS NULL AND p.deleted_at IS NULL AND m.pricing=c.old_pricing;