pub enum DefaultsOrigin {
User,
AutoDetected,
}Expand description
Whether a model’s stored inference_defaults were set by the user or
written automatically at import time.
Model.inference_defaults is populated two ways: a user explicitly
tunes it (gglib model update --presence-penalty …, or the WebUI edit
form), or crate::services’s import path auto-writes
InferenceConfig::reasoning_profile onto any model carrying the
reasoning tag — a reasonable guess, not a user decision. Both end up in
the same column with nothing distinguishing them, which meant an
auto-written guess silently outranked the user’s own global settings in
the resolution ladder (InferenceConfig::resolve_with_profile) exactly
as if the user had tuned it themselves.
This type tracks which one actually happened, so resolution can rank
AutoDetected below global settings while a real
User choice keeps outranking them.
Variants§
User
Set explicitly by the user — a CLI flag, a model-update request, or a
WebUI edit. Outranks global settings, same as before this type
existed.
AutoDetected
Written automatically at import time from the model’s reasoning
tag, never reviewed by a person. Ranks below global settings.
Trait Implementations§
Source§impl Clone for DefaultsOrigin
impl Clone for DefaultsOrigin
Source§fn clone(&self) -> DefaultsOrigin
fn clone(&self) -> DefaultsOrigin
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DefaultsOrigin
impl Debug for DefaultsOrigin
Source§impl<'de> Deserialize<'de> for DefaultsOrigin
impl<'de> Deserialize<'de> for DefaultsOrigin
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>,
Source§impl Display for DefaultsOrigin
impl Display for DefaultsOrigin
Source§impl FromStr for DefaultsOrigin
impl FromStr for DefaultsOrigin
Source§impl PartialEq for DefaultsOrigin
impl PartialEq for DefaultsOrigin
Source§fn eq(&self, other: &DefaultsOrigin) -> bool
fn eq(&self, other: &DefaultsOrigin) -> bool
self and other values to be equal, and is used by ==.