Skip to content

Add env variable override for the default agent provider#999

Merged
dersam merged 1 commit into
mainfrom
06-26/allow-overriding-of-default-agent-provider-with-env-variable
Jun 29, 2026
Merged

Add env variable override for the default agent provider#999
dersam merged 1 commit into
mainfrom
06-26/allow-overriding-of-default-agent-provider-with-env-variable

Conversation

@LasmarKhalifa

@LasmarKhalifa LasmarKhalifa commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Closes #998

Adds ROAST_DEFAULT_AGENT_PROVIDER as an env variable. If a workflow sets a provider, that takes precedence.

The value set in the env var is stripped and downcased, so that PI, pi and pi (with a trailing space) all resolve to :pi

LasmarKhalifa commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@LasmarKhalifa LasmarKhalifa force-pushed the 06-26/allow-overriding-of-default-agent-provider-with-env-variable branch from d01c23b to 169355b Compare June 26, 2026 20:09
@LasmarKhalifa LasmarKhalifa force-pushed the 06-26/change-pi-to-default-provider branch from 552214d to ce9180e Compare June 26, 2026 20:09
@LasmarKhalifa LasmarKhalifa marked this pull request as ready for review June 26, 2026 20:18
@LasmarKhalifa LasmarKhalifa linked an issue Jun 26, 2026 that may be closed by this pull request
dersam pushed a commit that referenced this pull request Jun 29, 2026
Mirrors ROAST_DEFAULT_AGENT_PROVIDER (#999) for the chat cog.
Users with a non-OpenAI key can now set this once instead of
adding `provider` to every workflow config block.

Precedence: explicit workflow config > env var > built-in default (:openai).
Invalid values raise InvalidConfigError at resolution time.

Closes #1000

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@LasmarKhalifa LasmarKhalifa force-pushed the 06-26/change-pi-to-default-provider branch from d7f46a3 to dbab25c Compare June 29, 2026 13:36
@LasmarKhalifa LasmarKhalifa force-pushed the 06-26/allow-overriding-of-default-agent-provider-with-env-variable branch from 169355b to 567eb99 Compare June 29, 2026 13:36
@LasmarKhalifa LasmarKhalifa force-pushed the 06-26/change-pi-to-default-provider branch from dbab25c to 154cf2c Compare June 29, 2026 13:58
@LasmarKhalifa LasmarKhalifa force-pushed the 06-26/allow-overriding-of-default-agent-provider-with-env-variable branch from 567eb99 to 0a04a03 Compare June 29, 2026 13:58
Base automatically changed from 06-26/change-pi-to-default-provider to main June 29, 2026 14:01
@LasmarKhalifa LasmarKhalifa force-pushed the 06-26/allow-overriding-of-default-agent-provider-with-env-variable branch from 0a04a03 to deeb3c6 Compare June 29, 2026 14:04
@dersam dersam merged commit 8618db0 into main Jun 29, 2026
3 checks passed
@dersam dersam deleted the 06-26/allow-overriding-of-default-agent-provider-with-env-variable branch June 29, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow overriding of default agent provider with env variable

2 participants