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/deepseek-v4.1-flash pricing drift in catalog.py (#14959)
Nicholas Tindle8c219d51dd05
diff --git a/autogpt_platform/backend/backend/data/llm_registry/catalog.py b/autogpt_platform/backend/backend/data/llm_registry/catalog.pyindex 553b53c7a6..a6b3a2ff53 100644--- a/autogpt_platform/backend/backend/data/llm_registry/catalog.py+++ b/autogpt_platform/backend/backend/data/llm_registry/catalog.py@@ -551,14 +551,15 @@ def _build_catalog() -> CatalogPayload:context_window=1048576,max_output_tokens=384000,price_tier=1,- # Live OpenRouter rate as of 2026-09-25: $0.14/$0.42 per 1M,- # cache read $0.0042/1M. OpenRouter reprices this route- # continuously (by design); this is the latest snapshot- # at PR time, re-checked immediately before merge.+ # 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.cost=CatalogModelCost(run_credits=1,- input_credits_per_1m=21.0,- output_credits_per_1m=63.0,+ input_credits_per_1m=45.0,+ output_credits_per_1m=180.0,cache_read_credits_per_1m=0.63,),),diff --git a/autogpt_platform/backend/backend/data/llm_registry/catalog_test.py b/autogpt_platform/backend/backend/data/llm_registry/catalog_test.pyindex b73a0b6d60..ce4f0a41df 100644--- a/autogpt_platform/backend/backend/data/llm_registry/catalog_test.py+++ b/autogpt_platform/backend/backend/data/llm_registry/catalog_test.py@@ -395,15 +395,15 @@ 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.14/$0.42 per 1M,- $0.0042/1M cached input as of 2026-09-25 — this route reprices+ """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 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": 21.0,- "output": 63.0,+ "input": 45.0,+ "output": 180.0,"cache_read": 0.63,"cache_creation": 0.0,}