From 6fc975d7e52855ce7a9dc7020ee3b7225f212f67 Mon Sep 17 00:00:00 2001 From: hervelin Date: Sun, 28 Sep 2025 16:38:00 +0800 Subject: [PATCH] Fix LiteLLM model name fallback in model overview --- .../src/components/model_info_view.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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