refactor cli config and move most of it to own_assist_common so that it can be reused in other clients.

This commit is contained in:
2026-07-28 17:58:44 +02:00
parent c5b594e1da
commit e90efbb544
12 changed files with 2439 additions and 117 deletions
+1 -4
View File
@@ -34,7 +34,6 @@ impl OllamaConfig {
);
}
let ollama_default_url = Url::parse("http://127.0.0.1:11434").unwrap();
let mut ollama = ollama_rs::Ollama::from_url(self.url.clone());
ollama.set_headers(Some(ollama_headers));
@@ -69,9 +68,7 @@ impl OllamaConfig {
create_model_request = create_model_request.system(system_prompt.clone());
}
ollama
.create_model(create_model_request)
.await
ollama.create_model(create_model_request).await
}
}