diff --git a/ui/litellm-dashboard/src/components/common_components/filter.tsx b/ui/litellm-dashboard/src/components/common_components/filter.tsx index 067fadfc6b..8351ea791a 100644 --- a/ui/litellm-dashboard/src/components/common_components/filter.tsx +++ b/ui/litellm-dashboard/src/components/common_components/filter.tsx @@ -88,6 +88,7 @@ const FilterComponent: React.FC = ({ "Key Alias", "User ID", "Key Hash", + "Model" ]; return ( diff --git a/ui/litellm-dashboard/src/components/view_logs/index.tsx b/ui/litellm-dashboard/src/components/view_logs/index.tsx index 2c05c3138d..b6be331aba 100644 --- a/ui/litellm-dashboard/src/components/view_logs/index.tsx +++ b/ui/litellm-dashboard/src/components/view_logs/index.tsx @@ -226,7 +226,6 @@ export default function SpendLogsTable({ filteredLogs, allTeams: hookAllTeams, allKeyAliases, - allModels, handleFilterChange, handleFilterReset } = useLogFilterLogic({ @@ -408,17 +407,7 @@ export default function SpendLogsTable({ { name: 'Model', label: 'Model', - isSearchable: true, - searchFn: async (searchText: string) => { - if (!allModels || allModels.length === 0) return []; - const filtered = allModels.filter((model: string) => { - return model.toLowerCase().includes(searchText.toLowerCase()); - }); - return filtered.map((model: string) => ({ - label: model, - value: model - })); - } + isSearchable: false, }, { name: 'Key Alias', @@ -440,7 +429,7 @@ export default function SpendLogsTable({ name: 'Key Hash', label: 'Key Hash', isSearchable: false, - } + }, ] // When a session is selected, render the SessionView component diff --git a/ui/litellm-dashboard/src/components/view_logs/log_filter_logic.tsx b/ui/litellm-dashboard/src/components/view_logs/log_filter_logic.tsx index 1f2b765ded..e61bfbf109 100644 --- a/ui/litellm-dashboard/src/components/view_logs/log_filter_logic.tsx +++ b/ui/litellm-dashboard/src/components/view_logs/log_filter_logic.tsx @@ -198,24 +198,6 @@ export function useLogFilterLogic({ enabled: !!accessToken, }); - const { data: allModels = [] } = useQuery({ - queryKey: ['allModels', accessToken, userID, userRole], - queryFn: async () => { - if (!accessToken || !userID || !userRole) return []; - - const response = await modelAvailableCall( - accessToken, - userID, - userRole, - false, // return_wildcard_routes - null // teamID - ); - - return response.data.map((model: { id: string }) => model.id); - }, - enabled: !!accessToken && !!userID && !!userRole, - }); - // Update filters state const handleFilterChange = (newFilters: Partial) => { setFilters(prev => { @@ -252,7 +234,6 @@ export function useLogFilterLogic({ filteredLogs, allKeyAliases, allTeams, - allModels, handleFilterChange, handleFilterReset, };