Skip to content

Commit

Permalink
fix bug in multi llm
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoweiguo authored Oct 31, 2024
1 parent 21d9c5a commit 0f27029
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions metagpt/actions/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def _update_private_llm(cls, data: Any) -> Any:
llm = create_llm_instance(config)
llm.cost_manager = data.llm.cost_manager
data.llm = llm
data.config = config # if not set self.config, self.llm will be reset when you call Role.set_actions function
return data

@property
Expand Down

0 comments on commit 0f27029

Please sign in to comment.