diff --git a/ui/litellm-dashboard/src/components/model_info_view.tsx b/ui/litellm-dashboard/src/components/model_info_view.tsx index 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 || "",