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]

Update ui/litellm-dashboard/src/components/add_model/RouterConfigBuilder.tsx

yuneng-jiangaf6ff6957d93
diff --git a/ui/litellm-dashboard/src/components/add_model/RouterConfigBuilder.tsx b/ui/litellm-dashboard/src/components/add_model/RouterConfigBuilder.tsx
index 645fae01725..9b93287b36d 100644
--- a/ui/litellm-dashboard/src/components/add_model/RouterConfigBuilder.tsx
+++ b/ui/litellm-dashboard/src/components/add_model/RouterConfigBuilder.tsx
@@ -54,7 +54,7 @@ const RouterConfigBuilder: React.FC<RouterConfigBuilderProps> = ({ modelInfo, va
model: route.name || route.model || "", // handle both 'name' and 'model' fields
utterances: route.utterances || [],
description: route.description || "",
- score_threshold: route.score_threshold || 0.5,
+ score_threshold: route.score_threshold ?? 0.5,
};
});
return initializedRoutes;