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: exclude defaults from hasValues check to avoid overwriting router settings

Yuneng Jiang4ba9219e1dc6
diff --git a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx b/ui/litellm-dashboard/src/components/team/TeamInfo.tsx
index d0aa2ebf26f..96cde701f7d 100644
--- a/ui/litellm-dashboard/src/components/team/TeamInfo.tsx
+++ b/ui/litellm-dashboard/src/components/team/TeamInfo.tsx
@@ -591,11 +591,18 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({
updateData.access_group_ids = values.access_group_ids;
}
- // Handle router_settings - read fresh values from DOM at save time
+ // Handle router_settings - read fresh values from DOM at save time.
+ // Only include if the user actually configured something meaningful
+ // (exclude defaults like enable_tag_filtering: false and empty arrays).
const currentRouterSettings = routerSettingsRef.current?.getValue();
if (currentRouterSettings?.router_settings) {
const hasValues = Object.values(currentRouterSettings.router_settings).some(
- (value) => value !== null && value !== undefined && value !== "",
+ (value) =>
+ value !== null &&
+ value !== undefined &&
+ value !== "" &&
+ value !== false &&
+ !(Array.isArray(value) && value.length === 0),
);
if (hasValues) {
updateData.router_settings = currentRouterSettings.router_settings;