Expand description
Model list query, filter, and sort types.
This module is the single source of truth for model filtering and
sorting logic. Both the CLI (direct-mode) and the Axum HTTP handler
delegate here; the GUI sends HTTP query parameters that are deserialized
into ModelListQuery on the server side. No filter/sort logic is
duplicated in the frontend.
Structsยง
- Model
List Query - Complete filter + sort specification for the model list.
Enumsยง
- Model
Sort By - The field to sort the model list by.
- Sort
Order - Direction for sorting.
Functionsยง
- apply_
query - Apply a
ModelListQueryto a model list, returning a filtered and sorted copy. - cmp_
tps_ ๐asc - Compare optional TPS values ascending;
Nonesorts last. - cmp_
tps_ ๐desc - Compare optional TPS values descending;
Nonesorts last. - matches_
query ๐ - Returns
truewhenmodelsatisfies all active filter constraints. - tps ๐
- Extract the latest TPS from a modelโs benchmark summary.