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
Model filter on logs (#11048)
tanjiro1c652b67b656
diff --git a/ui/litellm-dashboard/src/components/common_components/filter.tsx b/ui/litellm-dashboard/src/components/common_components/filter.tsxindex 067fadfc6ba..8351ea791ad 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<FilterComponentProps> = ({"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.tsxindex 2c05c3138d7..b6be331aba5 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 componentdiff --git a/ui/litellm-dashboard/src/components/view_logs/log_filter_logic.tsx b/ui/litellm-dashboard/src/components/view_logs/log_filter_logic.tsxindex 1f2b765ded7..e61bfbf109b 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<string[], Error>({- 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 stateconst handleFilterChange = (newFilters: Partial<LogFilterState>) => {setFilters(prev => {@@ -252,7 +234,6 @@ export function useLogFilterLogic({filteredLogs,allKeyAliases,allTeams,- allModels,handleFilterChange,handleFilterReset,};