Skip to main content

Module query

Module query 

Source
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ยง

ModelListQuery
Complete filter + sort specification for the model list.

Enumsยง

ModelSortBy
The field to sort the model list by.
SortOrder
Direction for sorting.

Functionsยง

apply_query
Apply a ModelListQuery to a model list, returning a filtered and sorted copy.
cmp_tps_asc ๐Ÿ”’
Compare optional TPS values ascending; None sorts last.
cmp_tps_desc ๐Ÿ”’
Compare optional TPS values descending; None sorts last.
matches_query ๐Ÿ”’
Returns true when model satisfies all active filter constraints.
tps ๐Ÿ”’
Extract the latest TPS from a modelโ€™s benchmark summary.