#[non_exhaustive]pub struct ModelFeatures {
pub model_id: &'static str,
pub alias_of: Option<&'static str>,
pub context_window: u32,
pub max_input_tokens: u32,
pub max_output_tokens: u32,
pub api_surfaces: &'static [ModelApiSurface],
pub input_modalities: &'static [ModelInputModality],
pub reasoning: ModelReasoningFeatures,
pub prompt_cache: ModelPromptCacheFeatures,
pub tools: ModelToolFeatures,
pub source_urls: &'static [&'static str],
}Expand description
API feature profile for one exact OpenAI model ID or alias.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.model_id: &'static strExact request model ID.
alias_of: Option<&'static str>Canonical model selected by this alias, when applicable.
context_window: u32Total input-plus-output context capacity.
max_input_tokens: u32Maximum input tokens accepted in one request.
max_output_tokens: u32Maximum output-token budget accepted in one request.
api_surfaces: &'static [ModelApiSurface]§input_modalities: &'static [ModelInputModality]§reasoning: ModelReasoningFeatures§prompt_cache: ModelPromptCacheFeatures§tools: ModelToolFeatures§source_urls: &'static [&'static str]Trait Implementations§
Source§impl Clone for ModelFeatures
impl Clone for ModelFeatures
Source§fn clone(&self) -> ModelFeatures
fn clone(&self) -> ModelFeatures
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 moreimpl Copy for ModelFeatures
Source§impl Debug for ModelFeatures
impl Debug for ModelFeatures
impl Eq for ModelFeatures
Source§impl PartialEq for ModelFeatures
impl PartialEq for ModelFeatures
impl StructuralPartialEq for ModelFeatures
Auto Trait Implementations§
impl Freeze for ModelFeatures
impl RefUnwindSafe for ModelFeatures
impl Send for ModelFeatures
impl Sync for ModelFeatures
impl Unpin for ModelFeatures
impl UnsafeUnpin for ModelFeatures
impl UnwindSafe for ModelFeatures
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.