Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(auto_router): reset inline validation errors when switching router type

Abhimanyu Kapur3464b5e7dfaf
diff --git a/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.tsx b/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.tsx
index ce69f8f7ae3..4e7a72435bf 100644
--- a/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.tsx
+++ b/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.tsx
@@ -238,7 +238,14 @@ const AddAutoRouterTab: React.FC<AddAutoRouterTabProps> = ({ form, handleOk, acc
<Card className="mb-4">
<div className="mb-4">
<Text className="text-sm font-medium mb-2 block">Router Type</Text>
- <Radio.Group value={routerType} onChange={(e) => setRouterType(e.target.value)} className="w-full">
+ <Radio.Group
+ value={routerType}
+ onChange={(e) => {
+ setRouterType(e.target.value);
+ setShowValidationErrors(false);
+ }}
+ className="w-full"
+ >
<Space direction="vertical" className="w-full">
<Radio value="recommended" className="w-full">
<div className="flex items-center gap-2">