diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 222bdb42f8d..6eab3f70ca0 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -9275,7 +9275,7 @@ async def _add_access_group_models_to_team_models( # Skip teams with empty models list — they already have access to everything # (handled by _add_team_models_to_all_models) if ( - len(team_object.models) == 0 + not team_object.models or SpecialModelNames.all_proxy_models.value in team_object.models ): continue @@ -9869,7 +9869,7 @@ async def _filter_models_by_team_id( team_accessible_model_ids: Set[str] = set() if ( - len(team_object.models) == 0 # empty list = all model access + not team_object.models # empty list = all model access or SpecialModelNames.all_proxy_models.value in team_object.models ): # Team has access to all models diff --git a/ui/litellm-dashboard/src/components/logging_settings_view.tsx b/ui/litellm-dashboard/src/components/logging_settings_view.tsx index 1f454f0b202..079711d196d 100644 --- a/ui/litellm-dashboard/src/components/logging_settings_view.tsx +++ b/ui/litellm-dashboard/src/components/logging_settings_view.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { Text, Badge } from "@tremor/react"; +import { Tag } from "antd"; import { CogIcon, BanIcon } from "@heroicons/react/outline"; import { callbackInfo, callback_map, reverse_callback_map } from "./callback_info_helpers"; @@ -28,7 +28,7 @@ export function LoggingSettingsView({ return callbackDisplayName || callbackName; }; - const getEventTypeColor = (eventType: string) => { + const getEventTypeColor = (eventType: string): string | undefined => { switch (eventType) { case "success": return "green"; @@ -37,7 +37,7 @@ export function LoggingSettingsView({ case "success_and_failure": return "blue"; default: - return "gray"; + return undefined; } }; @@ -60,10 +60,10 @@ export function LoggingSettingsView({