mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
feat: add GOOSE_SUBAGENT_MODEL and GOOSE_SUBAGENT_PROVIDER config options (#7277)
This commit is contained in:
@@ -1414,6 +1414,11 @@ impl SummonClient {
|
||||
.as_ref()
|
||||
.and_then(|s| s.goose_provider.clone())
|
||||
})
|
||||
.or_else(|| {
|
||||
Config::global()
|
||||
.get_param::<String>("GOOSE_SUBAGENT_PROVIDER")
|
||||
.ok()
|
||||
})
|
||||
.or_else(|| session.provider_name.clone())
|
||||
.ok_or_else(|| anyhow::anyhow!("No provider configured"))?;
|
||||
|
||||
@@ -1430,6 +1435,8 @@ impl SummonClient {
|
||||
.and_then(|s| s.goose_model.as_ref())
|
||||
{
|
||||
model_config.model_name = model.clone();
|
||||
} else if let Ok(model) = Config::global().get_param::<String>("GOOSE_SUBAGENT_MODEL") {
|
||||
model_config.model_name = model;
|
||||
}
|
||||
|
||||
if let Some(temp) = params.temperature {
|
||||
|
||||
Reference in New Issue
Block a user