- {orderedFilters.map((filterName) => {
- const option = options.find((opt) => opt.label === filterName || opt.name === filterName);
- if (!option) return null;
-
+ {options.map((option) => {
return (
diff --git a/ui/litellm-dashboard/src/components/view_logs/filter_options.ts b/ui/litellm-dashboard/src/components/view_logs/filter_options.ts
index 59ac58b674..52632ea586 100644
--- a/ui/litellm-dashboard/src/components/view_logs/filter_options.ts
+++ b/ui/litellm-dashboard/src/components/view_logs/filter_options.ts
@@ -22,16 +22,6 @@ export function getLogFilterOptions(accessToken: string): FilterOption[] {
{ label: "Failure", value: "failure" },
],
},
- {
- name: "Model",
- label: "Model",
- customComponent: PaginatedModelSelect,
- },
- {
- name: FILTER_KEYS.PUBLIC_MODEL_OR_SEARCH_TOOL,
- label: "Public model / search tool",
- isSearchable: false,
- },
{
name: "Key Alias",
label: "Key Alias",
@@ -63,14 +53,24 @@ export function getLogFilterOptions(accessToken: string): FilterOption[] {
return filtered;
},
},
+ {
+ name: "Error Message",
+ label: "Error Message",
+ isSearchable: false,
+ },
{
name: "Key Hash",
label: "Key Hash",
isSearchable: false,
},
{
- name: "Error Message",
- label: "Error Message",
+ name: "Model",
+ label: "Model",
+ customComponent: PaginatedModelSelect,
+ },
+ {
+ name: FILTER_KEYS.PUBLIC_MODEL_OR_SEARCH_TOOL,
+ label: "Public model / search tool",
isSearchable: false,
},
];