pub struct ModelConfig {
pub id: String,
pub name: Option<String>,
pub context_window: Option<u64>,
pub max_output_tokens: Option<u64>,
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
pub supports_images: Option<bool>,
pub supports_tools: Option<bool>,
}Expand description
A single model definition within a provider.
Fields§
§id: StringModel ID used in API calls (e.g. “deepseek-chat”).
name: Option<String>Display name (optional).
context_window: Option<u64>Context window size in tokens (optional).
max_output_tokens: Option<u64>Maximum output tokens (optional).
temperature: Option<f32>Sampling temperature (optional, runtime parameter).
max_tokens: Option<u32>Maximum completion tokens (optional, runtime parameter).
supports_images: Option<bool>Whether this model supports image inputs (optional, default false).
supports_tools: Option<bool>Whether this model supports tool calling (optional, default false).
Trait Implementations§
Source§impl Debug for ModelConfig
impl Debug for ModelConfig
Source§impl<'de> Deserialize<'de> for ModelConfig
impl<'de> Deserialize<'de> for ModelConfig
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
Auto Trait Implementations§
impl Freeze for ModelConfig
impl RefUnwindSafe for ModelConfig
impl Send for ModelConfig
impl Sync for ModelConfig
impl Unpin for ModelConfig
impl UnsafeUnpin for ModelConfig
impl UnwindSafe for ModelConfig
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