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(ui): preserve clear-vector-stores intent on model edit
Ryan Crabbe445c1fa0ec55
diff --git a/ui/litellm-dashboard/src/components/model_info_view.tsx b/ui/litellm-dashboard/src/components/model_info_view.tsxindex e14fc0c5f6c..205998476c2 100644--- a/ui/litellm-dashboard/src/components/model_info_view.tsx+++ b/ui/litellm-dashboard/src/components/model_info_view.tsx@@ -267,6 +267,9 @@ export default function ModelInfoView({}if (values.vector_store_ids?.length > 0) {updatedLitellmParams.vector_store_ids = values.vector_store_ids;+ } else if (values.vector_store_ids !== undefined) {+ // User explicitly cleared previously-set vector stores — send [] to clear on backend+ updatedLitellmParams.vector_store_ids = [];} else {delete updatedLitellmParams.vector_store_ids;}@@ -631,9 +634,11 @@ export default function ModelInfoView({guardrails: Array.isArray(localModelData.litellm_params?.guardrails)? localModelData.litellm_params.guardrails: [],- vector_store_ids: Array.isArray(localModelData.litellm_params?.vector_store_ids)- ? localModelData.litellm_params.vector_store_ids- : [],+ vector_store_ids:+ Array.isArray(localModelData.litellm_params?.vector_store_ids) &&+ localModelData.litellm_params.vector_store_ids.length > 0+ ? localModelData.litellm_params.vector_store_ids+ : undefined,tags: Array.isArray(localModelData.litellm_params?.tags) ? localModelData.litellm_params.tags : [],health_check_model: isWildcardModel ? localModelData.model_info?.health_check_model : null,litellm_credential_name: localModelData.litellm_params?.litellm_credential_name || "",