pub struct ModelEntry {
pub id: String,
pub name: Option<String>,
pub description: Option<String>,
pub kind: Option<String>,
pub created: Option<u64>,
pub owned_by: Option<String>,
pub context_window: Option<u32>,
pub context_length: Option<u32>,
pub max_context_length: Option<u32>,
pub max_completion_tokens: Option<u32>,
pub top_provider: Option<TopProvider>,
}Expand description
Model-list entry with required id and optional metadata.
Context length prefers context_window, then context_length, then
max_context_length. Top-level output limits take precedence over top_provider.
Fields§
§id: String§name: Option<String>§description: Option<String>§kind: Option<String>Mistral labels the model kind type (base, fine-tuned).
created: Option<u64>§owned_by: Option<String>§context_window: Option<u32>§context_length: Option<u32>§max_context_length: Option<u32>§max_completion_tokens: Option<u32>§top_provider: Option<TopProvider>Trait Implementations§
Source§impl Debug for ModelEntry
impl Debug for ModelEntry
Source§impl<'de> Deserialize<'de> for ModelEntry
impl<'de> Deserialize<'de> for ModelEntry
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 From<ModelEntry> for ModelInfo
impl From<ModelEntry> for ModelInfo
Source§fn from(entry: ModelEntry) -> Self
fn from(entry: ModelEntry) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ModelEntry
impl RefUnwindSafe for ModelEntry
impl Send for ModelEntry
impl Sync for ModelEntry
impl Unpin for ModelEntry
impl UnsafeUnpin for ModelEntry
impl UnwindSafe for ModelEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more