Feature/model override flag#437
Merged
dgageot merged 1 commit intodocker:mainfrom Oct 9, 2025
Merged
Conversation
rumpl
reviewed
Oct 7, 2025
Contributor
Author
|
hi @rumpl |
Member
|
Not yet sorry, am working on some hairy parts, will look tomorrow, some things git merged and there are conflicts now, sorry about that, could you rebase? |
Closes docker#325 Signed-off-by: Deepam02 <116721751+Deepam02@users.noreply.github.com>
c18e5e2 to
955fd19
Compare
dgageot
approved these changes
Oct 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #325
This PR implements the --model flag for cagent run and cagent exec commands, allowing users to override agent models at runtime without modifying configuration files.
Model Override Flag
The
--modelflag allows you to override agent models at runtime, providing flexibility without modifying configuration files.Syntax Options
Global Override (all agents use the same model):
cagent run config.yaml --model "provider/model"Per-Agent Override (specific agents use specific models):
cagent run config.yaml --model "agent_name=provider/model"Multiple Overrides (comma-separated):
cagent run config.yaml --model "agent1=provider1/model1,agent2=provider2/model2"Repeatable Flag (multiple --model flags):