pub struct ModelParameters {
pub parameter_count: Option<u64>,
pub context_window: u32,
pub max_output_tokens: u32,
pub input_formats: Vec<String>,
pub output_formats: Vec<String>,
pub capabilities: Vec<String>,
}Expand description
Model parameters and capabilities
Fields§
§parameter_count: Option<u64>Number of parameters (e.g., 7B, 13B, 70B)
context_window: u32Context window size (tokens)
max_output_tokens: u32Maximum output tokens
input_formats: Vec<String>Supported input formats
output_formats: Vec<String>Supported output formats
capabilities: Vec<String>Model capabilities/features
Trait Implementations§
Source§impl Clone for ModelParameters
impl Clone for ModelParameters
Source§fn clone(&self) -> ModelParameters
fn clone(&self) -> ModelParameters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModelParameters
impl Debug for ModelParameters
Source§impl Default for ModelParameters
impl Default for ModelParameters
Source§impl<'de> Deserialize<'de> for ModelParameters
impl<'de> Deserialize<'de> for ModelParameters
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
impl Eq for ModelParameters
Source§impl PartialEq for ModelParameters
impl PartialEq for ModelParameters
Source§fn eq(&self, other: &ModelParameters) -> bool
fn eq(&self, other: &ModelParameters) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelParameters
impl Serialize for ModelParameters
impl StructuralPartialEq for ModelParameters
Auto Trait Implementations§
impl Freeze for ModelParameters
impl RefUnwindSafe for ModelParameters
impl Send for ModelParameters
impl Sync for ModelParameters
impl Unpin for ModelParameters
impl UnsafeUnpin for ModelParameters
impl UnwindSafe for ModelParameters
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