Watch
1
0
Fork
You've already forked souveraine
0

config: kill hardcoded model defaults and precision fallback

default_primary_model() now returns empty string.
default_models() returns empty HashMap.
bridge/mod.rs no longer auto-injects {model}-precision fallbacks.
User-configured models only, no silent injection.
This commit is contained in:
Fimeg 2026-06-04 18:29:07 -04:00
commit 54816de005
2 changed files with 3 additions and 30 deletions

View file

@ -34,19 +34,13 @@ pub fn build_provider(config: &ConsciousnessConfig) -> anyhow::Result<Arc<dyn Ll
Ok(Arc::new(provider))
}
_ => {
// Mirror the precision fallback the server used to build inline.
let mut fallbacks = Vec::new();
if !bf.primary_model.ends_with("-precision") {
fallbacks.push(format!("{}-precision", bf.primary_model));
}
let client = BifrostClient::new(
&bf.base_url,
&bf.api_key,
&bf.virtual_key,
&bf.primary_model,
bf.timeout_secs,
)
.with_fallbacks(fallbacks);
);
Ok(Arc::new(client))
}
}

View file

@ -958,7 +958,7 @@ fn default_bifrost_key() -> String {
fn default_bifrost_virtual_key() -> String {
std::env::var("BIFROST_VIRTUAL_KEY").unwrap_or_else(|_| String::new())
}
fn default_primary_model() -> String { "openai/kimi-k2.6".to_string() }
fn default_primary_model() -> String { String::new() }
fn default_bifrost_timeout() -> u64 { 120 }
fn default_bandwidth_high() -> BandwidthClass { BandwidthClass::High }
fn default_presence_breathing() -> String { "breathing_color".to_string() }
@ -968,26 +968,5 @@ fn default_synthesis_elements() -> Vec<SynthesisElement> {
}
fn default_models() -> HashMap<String, ModelConfig> {
let mut m = HashMap::new();
m.insert("kimi-k2.6".to_string(), ModelConfig {
provider: "bifrost".to_string(),
model: "openai/kimi-k2.6".to_string(),
context_limit: 262000,
output_limit: 8192,
archivist_threshold: 0.7,
archivist_interval: 100,
preferred_for: vec![TaskType::Conversation],
supports_images: true,
});
m.insert("deepseek-v4-pro".to_string(), ModelConfig {
provider: "bifrost".to_string(),
model: "openai/deepseek-v4-pro".to_string(),
context_limit: 128000,
output_limit: 8192,
archivist_threshold: 0.7,
archivist_interval: 75,
preferred_for: vec![TaskType::Conversation, TaskType::Reflection],
supports_images: true,
});
m
HashMap::new()
}