feat: add GOOSE_SUBAGENT_MODEL and GOOSE_SUBAGENT_PROVIDER config options (#7277)

This commit is contained in:
tlongwell-block
2026-02-18 10:27:07 -05:00
committed by GitHub
parent ed187db2a1
commit a11b16f6d7
@@ -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 {