pub struct ModelsDevProviderModel {Show 16 fields
pub id: String,
pub base_model: Option<String>,
pub name: Option<String>,
pub family: Option<String>,
pub default_for_provider: bool,
pub attachment: Option<bool>,
pub reasoning: Option<bool>,
pub reasoning_options: Vec<Value>,
pub tool_call: Option<bool>,
pub structured_output: Option<bool>,
pub temperature: Option<bool>,
pub open_weights: Option<bool>,
pub limit: Option<ModelsDevLimit>,
pub modalities: Option<ModelsDevModalities>,
pub cost: Option<ModelsDevCost>,
pub interleaved: Option<ModelsDevInterleaved>,
}Expand description
Provider-scoped model row from api.json / catalog.providers.*.models.
Fields§
§id: StringProvider wire model id.
base_model: Option<String>Optional explicit canonical model link from source TOML.
name: Option<String>Human-friendly model name.
family: Option<String>Model family as exposed for this provider row.
default_for_provider: boolWhether this is the provider’s default model in a CodeWhale snapshot.
attachment: Option<bool>Whether attachments are accepted.
reasoning: Option<bool>Whether the model supports reasoning.
reasoning_options: Vec<Value>Flexible reasoning-control metadata.
tool_call: Option<bool>Whether tool calling is supported.
structured_output: Option<bool>Whether structured output is supported.
temperature: Option<bool>Whether temperature is supported.
open_weights: Option<bool>Whether weights are open through this offering.
limit: Option<ModelsDevLimit>Token limits for this provider offering.
modalities: Option<ModelsDevModalities>Input/output modalities for this provider offering.
cost: Option<ModelsDevCost>Provider-scoped pricing.
interleaved: Option<ModelsDevInterleaved>Interleaved reasoning field hints.
Implementations§
Source§impl ModelsDevProviderModel
impl ModelsDevProviderModel
Sourcepub fn supports_text_chat(&self) -> bool
pub fn supports_text_chat(&self) -> bool
True when the provider offering can be used for normal text chat.
Trait Implementations§
Source§impl Clone for ModelsDevProviderModel
impl Clone for ModelsDevProviderModel
Source§fn clone(&self) -> ModelsDevProviderModel
fn clone(&self) -> ModelsDevProviderModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelsDevProviderModel
impl Debug for ModelsDevProviderModel
Source§impl Default for ModelsDevProviderModel
impl Default for ModelsDevProviderModel
Source§fn default() -> ModelsDevProviderModel
fn default() -> ModelsDevProviderModel
Source§impl<'de> Deserialize<'de> for ModelsDevProviderModel
impl<'de> Deserialize<'de> for ModelsDevProviderModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ModelsDevProviderModel
impl PartialEq for ModelsDevProviderModel
Source§fn eq(&self, other: &ModelsDevProviderModel) -> bool
fn eq(&self, other: &ModelsDevProviderModel) -> bool
self and other values to be equal, and is used by ==.