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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix: treat empty router settings inputs as null instead of preserving old values
Yuneng Jiangf93db822fd15
diff --git a/ui/litellm-dashboard/src/components/common_components/RouterSettingsAccordion.tsx b/ui/litellm-dashboard/src/components/common_components/RouterSettingsAccordion.tsxindex ae4b87a3587..18c5d52b4f7 100644--- a/ui/litellm-dashboard/src/components/common_components/RouterSettingsAccordion.tsx+++ b/ui/litellm-dashboard/src/components/common_components/RouterSettingsAccordion.tsx@@ -241,9 +241,13 @@ const RouterSettingsAccordion = forwardRef<RouterSettingsAccordionRef, RouterSetkey !== "fallbacks") {const inputEl = document.querySelector(`input[name="${key}"]`) as HTMLInputElement | null;- if (inputEl && inputEl.value !== undefined && inputEl.value !== "") {- const parsed = parseInputValue(key, inputEl.value, value);- return [key, parsed];+ if (inputEl) {+ if (inputEl.value !== undefined && inputEl.value !== "") {+ const parsed = parseInputValue(key, inputEl.value, value);+ return [key, parsed];+ }+ // Input exists but is empty — user cleared it, set to null+ return [key, null];}return [key, value];} else if (key === "routing_strategy") {