mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-19 15:14:21 +01:00
fix: suggest correct model on switch (#789)
This commit is contained in:
@@ -194,10 +194,8 @@ pub async fn configure_provider_dialog() -> Result<bool, Box<dyn Error>> {
|
||||
}
|
||||
}
|
||||
|
||||
// Select model, defaulting to the provider's recommended model
|
||||
let default_model = config
|
||||
.get("GOOSE_MODEL")
|
||||
.unwrap_or(provider_meta.default_model.clone());
|
||||
// Select model, defaulting to the provider's recommended model UNLESS there is an env override
|
||||
let default_model = std::env::var("GOOSE_MODEL").unwrap_or(provider_meta.default_model.clone());
|
||||
let model: String = cliclack::input("Enter a model from that provider:")
|
||||
.default_input(&default_model)
|
||||
.interact()?;
|
||||
|
||||
Reference in New Issue
Block a user