pub struct ModelListQuery {
pub sort_by: ModelSortBy,
pub order: SortOrder,
pub min_params: Option<f64>,
pub max_params: Option<f64>,
pub min_context: Option<f64>,
pub max_context: Option<f64>,
pub quantizations: Option<Vec<String>>,
pub tags: Option<Vec<String>>,
pub min_speed: Option<f64>,
pub max_speed: Option<f64>,
}Expand description
Complete filter + sort specification for the model list.
All filter fields are optional — absent means “no constraint applied”.
sort_by and order always have sensible defaults (AddedAt, Desc).
This struct is used in three contexts:
- HTTP handler:
Query<ModelListQueryParams>is converted here. - CLI direct-mode: CLI flags are parsed directly into this struct.
- CLI proxy-mode: serialised as HTTP query parameters sent to the daemon.
Fields§
§sort_by: ModelSortByField to sort results by.
order: SortOrderSort direction.
min_params: Option<f64>Inclusive minimum parameter count in billions (param_count_b >= min_params).
max_params: Option<f64>Inclusive maximum parameter count in billions (param_count_b <= max_params).
min_context: Option<f64>Inclusive minimum context length.
max_context: Option<f64>Inclusive maximum context length.
quantizations: Option<Vec<String>>Quantization allowlist. A model passes if its quantization matches any listed value (case-sensitive). Models with no quantization are excluded when this filter is active.
Required tags. A model passes only if it has all listed tags.
min_speed: Option<f64>Inclusive minimum latest_tg_tps. Models with no benchmark data are
excluded when either speed bound is set.
max_speed: Option<f64>Inclusive maximum latest_tg_tps. Models with no benchmark data are
excluded when either speed bound is set.
Trait Implementations§
Source§impl Clone for ModelListQuery
impl Clone for ModelListQuery
Source§fn clone(&self) -> ModelListQuery
fn clone(&self) -> ModelListQuery
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more