pub struct AutoConfig {
pub cost_saving: Option<bool>,
pub cross_provider: Option<bool>,
pub router: Option<AutoRouterConfig>,
}Expand description
[auto] table — knobs for the --model auto / /model auto router.
cost_saving (#1207): when true, the auto-mode router prefers the
active provider’s known fast sibling for ambiguous requests, only using
its strong tier when the task clearly benefits from deeper reasoning.
Providers without a validated sibling stay on the active model. Default
is false (balanced — match the existing routing voice).
cross_provider (#4411): Auto routing is scoped to the active provider
unless this persisted opt-in is set to true. Without it, neither the
classifier inventory nor the local heuristic may leave the provider the
session is actually configured to use.
Fields§
§cost_saving: Option<bool>§cross_provider: Option<bool>Persisted opt-in for cross-provider Auto routing ([auto] cross_provider = true). Default false: active provider only.
router: Option<AutoRouterConfig>Optional explicit auto-router classifier route ([auto.router]).
Trait Implementations§
Source§impl Clone for AutoConfig
impl Clone for AutoConfig
Source§impl Debug for AutoConfig
impl Debug for AutoConfig
Source§impl Default for AutoConfig
impl Default for AutoConfig
Source§impl<'de> Deserialize<'de> for AutoConfig
impl<'de> Deserialize<'de> for AutoConfig
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>,
Auto Trait Implementations§
impl Forget for AutoConfig
impl Freeze for AutoConfig
impl Move for AutoConfig
impl RefUnwindSafe for AutoConfig
impl Send for AutoConfig
impl Sync for AutoConfig
impl Unpin for AutoConfig
impl UnsafeUnpin for AutoConfig
impl UnwindSafe for AutoConfig
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
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.