mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-15 09:12:18 +00:00
fix(ui): update auto-router reasoning tier test to match refreshed preset
PR #40341 refreshed the Anthropic Family preset's REASONING tier from claude-opus-5 to claude-fable-5-1 and updated autorouter_presets.test.ts, but missed the matching expectation in add_auto_router_tab.test.tsx. Read the expected tier_model_configs from the preset itself so a future model swap in autorouter_presets.json does not red this test again. Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
This commit is contained in:
parent
47b15ffb67
commit
bb4160c0ce
1 changed files with 1 additions and 3 deletions
|
|
@ -1046,9 +1046,7 @@ describe("AddAutoRouterTab", () => {
|
|||
await waitFor(() => expect(handleAddAutoRouterSubmit).toHaveBeenCalled());
|
||||
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" } }],
|
||||
},
|
||||
tier_model_configs: ANTHROPIC_PRESET.complexity_router_config.tier_model_configs,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue