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]

instant update delete model flow

Ishaan Jaff7d090c521d95
diff --git a/ui/litellm-dashboard/src/components/model_dashboard/columns.tsx b/ui/litellm-dashboard/src/components/model_dashboard/columns.tsx
index 53f1aaa6969..b1acf9ea5df 100644
--- a/ui/litellm-dashboard/src/components/model_dashboard/columns.tsx
+++ b/ui/litellm-dashboard/src/components/model_dashboard/columns.tsx
@@ -193,14 +193,14 @@ export const columns = (
accessorKey: "litellm_credential_name",
cell: ({ row }) => {
const model = row.original;
- return model.litellm_params.litellm_credential_name ? (
+ return model.litellm_params && model.litellm_params.litellm_credential_name ? (
<div className="overflow-hidden">
<Tooltip title={model.litellm_params.litellm_credential_name}>
{model.litellm_params.litellm_credential_name.slice(0, 7)}...
</Tooltip>
</div>
) : (
- "-"
+ <span className="text-gray-400">-</span>
);
},
},
diff --git a/ui/litellm-dashboard/src/components/model_info_view.tsx b/ui/litellm-dashboard/src/components/model_info_view.tsx
index 261b544d92a..c0fb57ed13f 100644
--- a/ui/litellm-dashboard/src/components/model_info_view.tsx
+++ b/ui/litellm-dashboard/src/components/model_info_view.tsx
@@ -128,6 +128,14 @@ export default function ModelInfoView({
if (!accessToken) return;
await modelDeleteCall(accessToken, modelId);
message.success("Model deleted successfully");
+
+ if (onModelUpdate) {
+ onModelUpdate({
+ deleted: true,
+ model_info: { id: modelId }
+ });
+ }
+
onClose();
} catch (error) {
console.error("Error deleting the model:", error);