pub struct ModelReasoning {
pub mandatory: bool,
pub default_enabled: bool,
pub supported_efforts: Option<Vec<String>>,
pub default_effort: Option<String>,
}Expand description
The reasoning controls a model accepts, as published in the catalog
reasoning object (the same shape OpenRouter publishes).
Send one of supported_efforts as reasoning_effort (Chat Completions)
or reasoning.effort (Responses). none turns reasoning off and is only
accepted when mandatory is false. A model without supported_efforts
has no tiers: any effort other than none turns reasoning on.
Fields§
§mandatory: boolReasoning cannot be turned off; none is rejected.
default_enabled: boolThe model reasons when a request names no effort.
supported_efforts: Option<Vec<String>>Accepted efforts, highest first.
default_effort: Option<String>The effort used when a request names none.
Implementations§
Trait Implementations§
Source§impl Clone for ModelReasoning
impl Clone for ModelReasoning
Source§impl Debug for ModelReasoning
impl Debug for ModelReasoning
Source§impl Default for ModelReasoning
impl Default for ModelReasoning
Source§impl<'de> Deserialize<'de> for ModelReasoning
impl<'de> Deserialize<'de> for ModelReasoning
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 ModelReasoning
Source§impl PartialEq for ModelReasoning
impl PartialEq for ModelReasoning
Source§impl Serialize for ModelReasoning
impl Serialize for ModelReasoning
impl StructuralPartialEq for ModelReasoning
Auto Trait Implementations§
impl Forget for ModelReasoning
impl Freeze for ModelReasoning
impl Move for ModelReasoning
impl RefUnwindSafe for ModelReasoning
impl Send for ModelReasoning
impl Sync for ModelReasoning
impl Unpin for ModelReasoning
impl UnsafeUnpin for ModelReasoning
impl UnwindSafe for ModelReasoning
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.