From 5fe6fea9c8a7ee32034d57ed0d1ecfec4510c53a Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 27 May 2024 15:58:43 -0700 Subject: [PATCH] ui -clean up models default value --- .../src/components/model_dashboard.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/ui/litellm-dashboard/src/components/model_dashboard.tsx b/ui/litellm-dashboard/src/components/model_dashboard.tsx index 18e29ebd85..9f383f4a7e 100644 --- a/ui/litellm-dashboard/src/components/model_dashboard.tsx +++ b/ui/litellm-dashboard/src/components/model_dashboard.tsx @@ -1173,7 +1173,7 @@ const ModelDashboard: React.FC = ({ }} >

- {model.model_name} + {model.model_name || "-"}

= ({ }} >

- {model.provider} + {model.provider || "-"}

{userRole === "Admin" && ( @@ -1205,7 +1205,7 @@ const ModelDashboard: React.FC = ({ }} title={model && model.api_base ? model.api_base : ""} > - {model && model.api_base ? model.api_base.slice(0, 20) : null} + {model && model.api_base ? model.api_base.slice(0, 20) : "-"} @@ -1218,9 +1218,11 @@ const ModelDashboard: React.FC = ({ wordBreak: "break-word", }} > +
                             {model.input_cost ||
                               model.litellm_params.input_cost_per_token ||
-                              null}
+                              "-"}
+                            
= ({ wordBreak: "break-word", }} > +
                             {model.output_cost ||
                               model.litellm_params.output_cost_per_token ||
-                              null}
+                              "-"}
+                            

- {formatCreatedAt(model.model_info.created_at)} + {formatCreatedAt(model.model_info.created_at) || "-"}

- {model.model_info.created_by} + {model.model_info.created_by || "-"}