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-chat and kimi-k2.6 pricing drift in catalog.py (#14989)
Nicholas Tindle8ccac1f4881b
diff --git a/autogpt_platform/backend/backend/data/block_cost_config_test.py b/autogpt_platform/backend/backend/data/block_cost_config_test.pyindex 1b35b128a1..821415fe30 100644--- a/autogpt_platform/backend/backend/data/block_cost_config_test.py+++ b/autogpt_platform/backend/backend/data/block_cost_config_test.py@@ -239,7 +239,8 @@ def test_open_router_bills_cost_usd_not_the_displayed_token_rate():def test_open_router_display_rate_matches_the_catalog_entry():"""The builder's "$X in / $Y out per 1M" label is the catalog credit rate- divided by the 150 cr/$ margin — SECRT-2701's corrected deepseek figures.+ divided by the 150 cr/$ margin — SECRT-2701's corrected deepseek figures,+ moved again on 2026-09-28 to track OpenRouter's live reprice."""entry = next(c@@ -247,5 +248,5 @@ def test_open_router_display_rate_matches_the_catalog_entry():if c.cost_filter.get("model") == LLMModel("deepseek/deepseek-chat"))assert entry.token_rate is not None- assert entry.token_rate.input_usd_per_1m == pytest.approx(0.32)- assert entry.token_rate.output_usd_per_1m == pytest.approx(0.89)+ assert entry.token_rate.input_usd_per_1m == pytest.approx(0.2574)+ assert entry.token_rate.output_usd_per_1m == pytest.approx(1.0287)diff --git a/autogpt_platform/backend/backend/data/llm_registry/catalog.py b/autogpt_platform/backend/backend/data/llm_registry/catalog.pyindex fc8c40313f..d29b4c9134 100644--- a/autogpt_platform/backend/backend/data/llm_registry/catalog.py+++ b/autogpt_platform/backend/backend/data/llm_registry/catalog.py@@ -526,8 +526,8 @@ def _build_catalog() -> CatalogPayload:price_tier=1,cost=CatalogModelCost(run_credits=2,- input_credits_per_1m=48.0,- output_credits_per_1m=133.5,+ input_credits_per_1m=38.61,+ output_credits_per_1m=154.305,),),CatalogModel(@@ -897,8 +897,8 @@ def _build_catalog() -> CatalogPayload:price_tier=2,cost=CatalogModelCost(run_credits=2,- input_credits_per_1m=142.5,- output_credits_per_1m=600.0,+ input_credits_per_1m=97.5,+ output_credits_per_1m=511.5,),),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 ce4f0a41df..ea6b6ac695 100644--- a/autogpt_platform/backend/backend/data/llm_registry/catalog_test.py+++ b/autogpt_platform/backend/backend/data/llm_registry/catalog_test.py@@ -163,11 +163,14 @@ def test_deepseek_chat_display_rate_tracks_openrouter():picks a model is still wrong. Re-derive with``poetry run python scripts/check_openrouter_prices.py`` and move bothsides together when OpenRouter reprices.++ OpenRouter repriced again to $0.2574/$1.0287 live; these pins were moved+ to match on 2026-09-28."""chat = LLMModel("deepseek/deepseek-chat")assert TOKEN_COST[chat].model_dump() == {- "input": 48.0, # $0.32/1M x 150 cr/$- "output": 133.5, # $0.89/1M x 150 cr/$+ "input": 38.61, # $0.2574/1M x 150 cr/$+ "output": 154.305, # $1.0287/1M x 150 cr/$"cache_read": 0.0,"cache_creation": 0.0,}