Skip to content

Add per-agent chat model override via environment variables#451

Merged
lbarcziova merged 1 commit intopackit:mainfrom
lbarcziova:per-agent-model-override
May 6, 2026
Merged

Add per-agent chat model override via environment variables#451
lbarcziova merged 1 commit intopackit:mainfrom
lbarcziova:per-agent-model-override

Conversation

@lbarcziova
Copy link
Copy Markdown
Member

Allow overriding CHAT_MODEL per agent type (CHAT_MODEL_TRIAGE, CHAT_MODEL_BACKPORT, CHAT_MODEL_REBASE, CHAT_MODEL_REBUILD). Falls back to the default CHAT_MODEL when unset.

Assisted-by: Claude Opus 4.6

Allow overriding CHAT_MODEL per agent type (CHAT_MODEL_TRIAGE,
CHAT_MODEL_BACKPORT, CHAT_MODEL_REBASE, CHAT_MODEL_REBUILD).
Falls back to the default CHAT_MODEL when unset.

Assisted-by: Claude Opus 4.6
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces per-agent chat model overrides by adding specific environment variables for triage, backport, rebase, and rebuild agents. It includes a new utility function, resolve_chat_model_override, which is called during each agent's initialization to apply these overrides if configured. I have no feedback to provide.

Copy link
Copy Markdown
Collaborator

@opohorel opohorel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@lbarcziova lbarcziova merged commit fcfdfe5 into packit:main May 6, 2026
9 checks passed
@lbarcziova lbarcziova deleted the per-agent-model-override branch May 6, 2026 06:51
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.

2 participants