#[non_exhaustive]pub struct Model {
pub id: OpenAiModelId,
pub created: Option<u64>,
pub display_name: Option<String>,
pub context_window: Option<u64>,
pub max_context_window: Option<u64>,
pub max_output_tokens: Option<u64>,
pub thinking_supported: Option<bool>,
pub object: ModelObjectType,
pub owned_by: String,
pub extra: Extra,
}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.id: OpenAiModelId§created: Option<u64>§display_name: Option<String>§context_window: Option<u64>Input allowance. OpenAI has no separate input limit — the context window
is the accepted input size — so peers that split the two (Claude’s
max_input_tokens, Gemini’s inputTokenLimit) map onto this field.
max_context_window: Option<u64>Codex reports the override ceiling separately from the default budget;
kept verbatim so a client can see the headroom, while context_window
carries the value the catalogue consumes.
max_output_tokens: Option<u64>§thinking_supported: Option<bool>§object: ModelObjectType§owned_by: String§extra: ExtraImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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 StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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