From 0f27029b2c55b5216b789b40c2b1dd48b507978d Mon Sep 17 00:00:00 2001 From: zhaoweiguo Date: Thu, 31 Oct 2024 16:55:47 +0800 Subject: [PATCH] fix bug in multi llm --- metagpt/actions/action.py | 1 + 1 file changed, 1 insertion(+) diff --git a/metagpt/actions/action.py b/metagpt/actions/action.py index 20c052aa9..0909ef2fc 100644 --- a/metagpt/actions/action.py +++ b/metagpt/actions/action.py @@ -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