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]

Fix LiteLLM model name fallback in model overview

hervelin6fc975d7e528
diff --git a/ui/litellm-dashboard/src/components/model_info_view.tsx b/ui/litellm-dashboard/src/components/model_info_view.tsx
index 30e85f62aeb..55bc24edaca 100644
--- a/ui/litellm-dashboard/src/components/model_info_view.tsx
+++ b/ui/litellm-dashboard/src/components/model_info_view.tsx
@@ -117,6 +117,16 @@ export default function ModelInfoView({
let modelInfoResponse = await modelInfoV1Call(accessToken, modelId);
console.log("modelInfoResponse, ", modelInfoResponse);
let specificModelData = modelInfoResponse.data[0];
+ if (specificModelData && !specificModelData.litellm_model_name) {
+ specificModelData = {
+ ...specificModelData,
+ litellm_model_name:
+ specificModelData?.litellm_params?.litellm_model_name ??
+ specificModelData?.litellm_params?.model ??
+ specificModelData?.model_info?.key ??
+ null,
+ };
+ }
setLocalModelData(specificModelData);
// Check if cache control is enabled