feat: allow setting ollama host (#874)

This commit is contained in:
Yingjie He
2025-01-29 11:34:41 -08:00
committed by GitHub
parent c59bf888e8
commit 129e4a9e44
12 changed files with 40 additions and 12 deletions

View File

@@ -266,7 +266,8 @@ pub async fn configure_provider_dialog() -> Result<bool, Box<dyn Error>> {
let spin = spinner();
spin.start("Checking your configuration...");
let model_config = goose::model::ModelConfig::new(model.clone());
// Use max tokens to speed up the provider test.
let model_config = goose::model::ModelConfig::new(model.clone()).with_max_tokens(Some(10));
let provider = create(provider_name, model_config)?;
let message = Message::user().with_text(