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:
parent
85aa1f77de
commit
54816de005
2 changed files with 3 additions and 30 deletions
|
|
@ -34,19 +34,13 @@ pub fn build_provider(config: &ConsciousnessConfig) -> anyhow::Result<Arc<dyn Ll
|
||||||
Ok(Arc::new(provider))
|
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(
|
let client = BifrostClient::new(
|
||||||
&bf.base_url,
|
&bf.base_url,
|
||||||
&bf.api_key,
|
&bf.api_key,
|
||||||
&bf.virtual_key,
|
&bf.virtual_key,
|
||||||
&bf.primary_model,
|
&bf.primary_model,
|
||||||
bf.timeout_secs,
|
bf.timeout_secs,
|
||||||
)
|
);
|
||||||
.with_fallbacks(fallbacks);
|
|
||||||
Ok(Arc::new(client))
|
Ok(Arc::new(client))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -958,7 +958,7 @@ fn default_bifrost_key() -> String {
|
||||||
fn default_bifrost_virtual_key() -> String {
|
fn default_bifrost_virtual_key() -> String {
|
||||||
std::env::var("BIFROST_VIRTUAL_KEY").unwrap_or_else(|_| String::new())
|
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_bifrost_timeout() -> u64 { 120 }
|
||||||
fn default_bandwidth_high() -> BandwidthClass { BandwidthClass::High }
|
fn default_bandwidth_high() -> BandwidthClass { BandwidthClass::High }
|
||||||
fn default_presence_breathing() -> String { "breathing_color".to_string() }
|
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> {
|
fn default_models() -> HashMap<String, ModelConfig> {
|
||||||
let mut m = HashMap::new();
|
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
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue