feat(llm): wire llm_advanced through provider construction + defaults (T5.2)
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user