AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(backend): correct DeepSeek V4.1 Flash OpenRouter display price drift (#15071)
Nicholas Tindle4392deb9dd21
diff --git a/autogpt_platform/backend/backend/data/llm_registry/catalog.py b/autogpt_platform/backend/backend/data/llm_registry/catalog.pyindex b045e13c11..ee4f74b853 100644--- a/autogpt_platform/backend/backend/data/llm_registry/catalog.py+++ b/autogpt_platform/backend/backend/data/llm_registry/catalog.py@@ -582,16 +582,17 @@ def _build_catalog() -> CatalogPayload:context_window=1048576,max_output_tokens=384000,price_tier=1,- # Live OpenRouter rate as of 2026-09-26: $0.30/$1.20 per 1M- # (OpenRouter raised this route from $0.14/$0.42). OpenRouter- # reprices this route continuously (by design); this is the- # latest snapshot at PR time, re-checked immediately before- # merge. Flagged by scripts/check_openrouter_prices.py.+ # Live OpenRouter rate as of 2026-10-02: $0.03/$0.75 per+ # 1M (cache read $0.00375), down from $0.30/$1.20 on+ # 2026-09-26. OpenRouter reprices this route continuously+ # (by design); this is the latest snapshot at PR time,+ # re-checked immediately before merge. Flagged by+ # scripts/check_openrouter_prices.py.cost=CatalogModelCost(run_credits=1,- input_credits_per_1m=45.0,- output_credits_per_1m=180.0,- cache_read_credits_per_1m=0.63,+ input_credits_per_1m=4.5,+ output_credits_per_1m=112.5,+ cache_read_credits_per_1m=0.5625,),),CatalogModel(diff --git a/autogpt_platform/backend/backend/data/llm_registry/catalog_test.py b/autogpt_platform/backend/backend/data/llm_registry/catalog_test.pyindex 1a88931633..b6cc45afb0 100644--- a/autogpt_platform/backend/backend/data/llm_registry/catalog_test.py+++ b/autogpt_platform/backend/backend/data/llm_registry/catalog_test.py@@ -417,16 +417,16 @@ def test_qwen3_8_flash_bills_at_authored_rates():def test_deepseek_v4_1_flash_bills_at_authored_rates():- """DeepSeek V4.1 Flash (OpenRouter live rate $0.30/$1.20 per 1M,- $0.0042/1M cached input as of 2026-09-26 — this route reprices+ """DeepSeek V4.1 Flash (OpenRouter live rate $0.03/$0.75 per 1M,+ $0.00375/1M cached input as of 2026-10-02 — this route repricescontinuously by design) — flat tier and per-1M projections mustmatch the authored catalog entry."""flash = LLMModel("deepseek/deepseek-v4.1-flash")assert MODEL_COST[flash] == 1assert TOKEN_COST[flash].model_dump() == {- "input": 45.0,- "output": 180.0,- "cache_read": 0.63,+ "input": 4.5,+ "output": 112.5,+ "cache_read": 0.5625,"cache_creation": 0.0,}assert MODEL_METADATA[flash].max_output_tokens == 384000