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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Update model_dashboard.tsx
Achintya Rajan6cf9cce38fca
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/model_dashboard.tsx b/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/model_dashboard.tsxindex 68738c78bb6..42f96129552 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/model_dashboard.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/model_dashboard.tsx@@ -152,14 +152,6 @@ const ModelsAndEndpointsView: React.FC<ModelDashboardProps> = ({const dropdownRef = useRef<HTMLDivElement>(null);const [selectedTabIndex, setSelectedTabIndex] = useState(0);-- const handleCreateNewModelClick = () => {- if (selectedModelId) {- setSelectedModelId(null);- }- setSelectedTabIndex(1);- };-const setProviderModelsFn = (provider: Providers) => {const _providerModels = getProviderModels(provider, modelMap);setProviderModels(_providerModels);@@ -187,25 +179,6 @@ const ModelsAndEndpointsView: React.FC<ModelDashboardProps> = ({return () => document.removeEventListener("mousedown", handleClickOutside);}, []);- function formatCreatedAt(createdAt: string | null) {- if (createdAt) {- const date = new Date(createdAt);- const options = { month: "long", day: "numeric", year: "numeric" };- return date.toLocaleDateString("en-US");- }- return null;- }-- const handleEditClick = (model: any) => {- setSelectedModel(model);- setEditModalVisible(true);- };-- const handleEditCancel = () => {- setEditModalVisible(false);- setSelectedModel(null);- };-const uploadProps: UploadProps = {name: "file",accept: ".json",@@ -629,11 +602,7 @@ const ModelsAndEndpointsView: React.FC<ModelDashboardProps> = ({console.log(`selectedProvider: ${selectedProvider}`);console.log(`providerModels.length: ${providerModels.length}`);-- const providerKey = Object.keys(Providers).find(- (key) => (Providers as { [index: string]: any })[key] === selectedProvider,- );-+ Object.keys(Providers).find((key) => (Providers as { [index: string]: any })[key] === selectedProvider);// If a team is selected, render TeamInfoView in full page layoutif (selectedTeamId) {return (