pub enum ReasoningDialect {
OpenRouter,
OpenAi,
}Expand description
Which reasoning parameter an OpenAI-compatible endpoint takes.
The two dialects are not interchangeable: OpenRouter’s is a reasoning
object that also carries a token budget, OpenAI’s is a bare
reasoning_effort string with no budget at all.
Variants§
OpenRouter
OpenRouter’s unified reasoning object, which it normalizes per model
and ignores where a model cannot reason. See
https://openrouter.ai/docs/use-cases/reasoning-tokens.
OpenAi
OpenAI’s reasoning_effort string, which is what the compatible servers
copied. Whether a model accepts it is only known from the 400 it
answers with, which is what [ReasoningSupport] is for.
Trait Implementations§
Source§impl Clone for ReasoningDialect
impl Clone for ReasoningDialect
Source§fn clone(&self) -> ReasoningDialect
fn clone(&self) -> ReasoningDialect
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 ReasoningDialect
Source§impl Debug for ReasoningDialect
impl Debug for ReasoningDialect
Source§impl Default for ReasoningDialect
impl Default for ReasoningDialect
Source§fn default() -> ReasoningDialect
fn default() -> ReasoningDialect
Returns the “default value” for a type. Read more
impl Eq for ReasoningDialect
Source§impl PartialEq for ReasoningDialect
impl PartialEq for ReasoningDialect
impl StructuralPartialEq for ReasoningDialect
Auto Trait Implementations§
impl Freeze for ReasoningDialect
impl RefUnwindSafe for ReasoningDialect
impl Send for ReasoningDialect
impl Sync for ReasoningDialect
impl Unpin for ReasoningDialect
impl UnsafeUnpin for ReasoningDialect
impl UnwindSafe for ReasoningDialect
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