pub struct MdModel {Show 18 fields
pub name: String,
pub family: Option<String>,
pub reasoning: bool,
pub tool_call: bool,
pub attachment: bool,
pub temperature: Option<bool>,
pub structured_output: Option<bool>,
pub knowledge: Option<String>,
pub release_date: Option<String>,
pub last_updated: Option<String>,
pub open_weights: Option<bool>,
pub interleaved: Option<Value>,
pub reasoning_options: Option<Vec<MdReasoningOption>>,
pub limit: MdLimit,
pub cost: Option<MdCost>,
pub modalities: Option<MdModalities>,
pub status: Option<String>,
pub provider: Option<MdModelProvider>,
}Expand description
A single model entry — serialised from models.dev api.json.
Fields§
§name: StringDisplay name.
family: Option<String>Model family (e.g. “claude-sonnet”, “gpt-4”).
reasoning: boolWhether the model supports reasoning / chain-of-thought.
tool_call: boolWhether the model supports tool calling.
attachment: boolWhether the model supports file attachments (images, PDFs).
temperature: Option<bool>Whether the model supports temperature control.
structured_output: Option<bool>Whether the model supports structured output / JSON mode.
knowledge: Option<String>Knowledge cutoff date.
release_date: Option<String>Release date of the model.
last_updated: Option<String>Last update time of this entry.
open_weights: Option<bool>Whether the model uses open weights.
interleaved: Option<Value>Whether the model supports interleaved thinking + tool calls.
reasoning_options: Option<Vec<MdReasoningOption>>Reasoning options (effort levels, budget tokens).
limit: MdLimitToken limits.
cost: Option<MdCost>Pricing (USD per million tokens). Optional — some are free.
modalities: Option<MdModalities>Supported input/output modalities.
status: Option<String>Model status (alpha, beta, deprecated).
provider: Option<MdModelProvider>Per-model provider override (npm + api).