Fix action.llm.model in examples/debate_simple #930
Merged
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.
Fix action.llm.model in examples/debate_simple
Features
Assigned configs for actions to prevent
action.llm.model
being overridden inRole._init_action
.Feature Docs
Influence
The settings for
action.llm.model
in the example code now work.Result
2024-02-23 08:52:39.815 | INFO | metagpt.roles.role:_act:399 - Alex(Democratic candidate): to do Action(AlexSay)
Climate change is real, urgent, and demands bold action now! We can't afford to wait.
2024-02-23 08:52:43.782 | INFO | metagpt.utils.cost_manager:update_cost:52 - Total running cost: $0.001 | Max budget: $10.000 | Current cost: $0.001, prompt_tokens: 83, completion_tokens: 20
2024-02-23 08:52:43.785 | INFO | metagpt.roles.role:_act:399 - Bob(Republican candidate): to do Action(BobSay)
Climate change is a pressing issue that demands immediate action. We cannot afford to delay any longer.
2024-02-23 08:52:45.168 | INFO | metagpt.utils.cost_manager:update_cost:52 - Total running cost: $0.000 | Max budget: $10.000 | Current cost: $0.000, prompt_tokens: 95, completion_tokens: 19
Other
Referenced test_context_mixin/test_config_priority().