From 226d0078ba45ad5e52a29aa451f0a04d5dcc5f71 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 9 Sep 2026 03:06:22 +0000 Subject: [PATCH] test(ui): derive Anthropic Family reasoning model from preset The 'carries a preset's per-tier reasoning effort through to the create payload' assertion hardcoded claude-opus-5, which broke after #40341 retargeted the Anthropic Family reasoning tier at claude-fable-5-1. Read the model from ANTHROPIC_TIERS so future preset edits don't red this test, matching the pattern the file already documents at ALL_FAMILY_MODELS. Co-authored-by: Krrish Dholakia --- .../src/components/add_model/add_auto_router_tab.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.test.tsx b/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.test.tsx index 014854ac712..cd03cba3b31 100644 --- a/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.test.tsx +++ b/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.test.tsx @@ -1047,7 +1047,7 @@ describe("AddAutoRouterTab", () => { expect(vi.mocked(handleAddAutoRouterSubmit).mock.calls.at(-1)?.[0]).toMatchObject({ complexity_router_config: { tier_model_configs: { - REASONING: [{ model_name: "claude-opus-5", litellm_params: { reasoning_effort: "high" } }], + REASONING: [{ model_name: ANTHROPIC_TIERS.REASONING[0], litellm_params: { reasoning_effort: "high" } }], }, }, });