diff --git a/ui/litellm-dashboard/src/components/model_info_view.tsx b/ui/litellm-dashboard/src/components/model_info_view.tsx index 9e846c83ff3..e14fc0c5f6c 100644 --- a/ui/litellm-dashboard/src/components/model_info_view.tsx +++ b/ui/litellm-dashboard/src/components/model_info_view.tsx @@ -265,10 +265,10 @@ export default function ModelInfoView({ if (values.guardrails) { updatedLitellmParams.guardrails = values.guardrails; } - if (values.vector_store_ids !== undefined) { - updatedLitellmParams.vector_store_ids = Array.isArray(values.vector_store_ids) - ? values.vector_store_ids - : []; + if (values.vector_store_ids?.length > 0) { + updatedLitellmParams.vector_store_ids = values.vector_store_ids; + } else { + delete updatedLitellmParams.vector_store_ids; } // Handle cache control settings