pub struct ProviderModelConfig {
pub id: Option<String>,
pub attachment: Option<bool>,
pub cost: Option<ModelCost>,
pub limit: Option<ModelLimit>,
pub name: Option<String>,
pub options: Option<HashMap<String, Value>>,
pub reasoning: Option<bool>,
pub release_date: Option<String>,
pub temperature: Option<bool>,
pub tool_call: Option<bool>,
}Expand description
Configuration for a single model within a provider.
Fields§
§id: Option<String>Model identifier override.
attachment: Option<bool>Whether the model supports file attachments.
cost: Option<ModelCost>Token cost information.
limit: Option<ModelLimit>Context and output limits.
name: Option<String>Display name for the model.
options: Option<HashMap<String, Value>>Arbitrary model-specific options.
reasoning: Option<bool>Whether the model supports reasoning / chain-of-thought.
release_date: Option<String>Release date string (e.g. "2024-05-13").
temperature: Option<bool>Whether the model supports temperature adjustment.
tool_call: Option<bool>Whether the model supports tool calling.
Trait Implementations§
Source§impl Clone for ProviderModelConfig
impl Clone for ProviderModelConfig
Source§fn clone(&self) -> ProviderModelConfig
fn clone(&self) -> ProviderModelConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderModelConfig
impl Debug for ProviderModelConfig
Source§impl Default for ProviderModelConfig
impl Default for ProviderModelConfig
Source§fn default() -> ProviderModelConfig
fn default() -> ProviderModelConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderModelConfig
impl<'de> Deserialize<'de> for ProviderModelConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProviderModelConfig
impl PartialEq for ProviderModelConfig
Source§impl Serialize for ProviderModelConfig
impl Serialize for ProviderModelConfig
impl StructuralPartialEq for ProviderModelConfig
Auto Trait Implementations§
impl Freeze for ProviderModelConfig
impl RefUnwindSafe for ProviderModelConfig
impl Send for ProviderModelConfig
impl Sync for ProviderModelConfig
impl Unpin for ProviderModelConfig
impl UnwindSafe for ProviderModelConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more