feat(llm): wire llm_advanced through provider construction + defaults (T5.2)

This commit is contained in:
iamdoubz
2026-07-04 09:21:27 -05:00
parent 34e511bcf6
commit 606bf67943
+2
View File
@@ -51,6 +51,7 @@ fn default_settings() -> Settings {
llm_provider: "ollama".into(),
llm_endpoint: "http://localhost:11434".into(),
llm_model: "llama3".into(),
llm_advanced: serde_json::Value::Null,
preferred_backend: "auto".into(),
whisper_model: crate::paths::DEFAULT_WHISPER_MODEL.to_string(),
low_overhead: false,
@@ -1550,6 +1551,7 @@ fn llm_provider_from_settings(settings: &Settings) -> Option<Box<dyn crate::llm:
"ollama" => Some(Box::new(crate::llm::OllamaProvider {
endpoint: settings.llm_endpoint.clone(),
model: settings.llm_model.clone(),
advanced: settings.llm_advanced.clone(),
})),
"custom" => Some(Box::new(crate::llm::OpenAiCompatProvider {
endpoint: settings.llm_endpoint.clone(),