Skip to content

Commit e881a05

Browse files
jtoyithinkallJasonekzhu
authored
2147 - Fix notebook bug to make a copy of configs for each agent (microsoft#2176)
* try fix groupchat llm_config * Update agentchat_groupchat_RAG.ipynb * use better config options * formatting --------- Co-authored-by: i <[email protected]> Co-authored-by: Li Jiang <[email protected]> Co-authored-by: Jason <[email protected]> Co-authored-by: Eric Zhu <[email protected]>
1 parent 226ba4c commit e881a05

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

notebook/agentchat_groupchat_RAG.ipynb

+7-3
Original file line numberDiff line numberDiff line change
@@ -117,27 +117,31 @@
117117
" description=\"Assistant who has extra content retrieval power for solving difficult problems.\",\n",
118118
")\n",
119119
"\n",
120+
"\n",
121+
"coder_llm_config = llm_config.copy()\n",
120122
"coder = AssistantAgent(\n",
121123
" name=\"Senior_Python_Engineer\",\n",
122124
" is_termination_msg=termination_msg,\n",
123125
" system_message=\"You are a senior python engineer, you provide python code to answer questions. Reply `TERMINATE` in the end when everything is done.\",\n",
124-
" llm_config=llm_config,\n",
126+
" llm_config={\"config_list\": config_list},\n",
125127
" description=\"Senior Python Engineer who can write code to solve problems and answer questions.\",\n",
126128
")\n",
127129
"\n",
130+
"pm_llm_config = llm_config.copy()\n",
128131
"pm = autogen.AssistantAgent(\n",
129132
" name=\"Product_Manager\",\n",
130133
" is_termination_msg=termination_msg,\n",
131134
" system_message=\"You are a product manager. Reply `TERMINATE` in the end when everything is done.\",\n",
132-
" llm_config=llm_config,\n",
135+
" llm_config={\"config_list\": config_list},\n",
133136
" description=\"Product Manager who can design and plan the project.\",\n",
134137
")\n",
135138
"\n",
139+
"reviewer_llm_config = llm_config.copy()\n",
136140
"reviewer = autogen.AssistantAgent(\n",
137141
" name=\"Code_Reviewer\",\n",
138142
" is_termination_msg=termination_msg,\n",
139143
" system_message=\"You are a code reviewer. Reply `TERMINATE` in the end when everything is done.\",\n",
140-
" llm_config=llm_config,\n",
144+
" llm_config={\"config_list\": config_list},\n",
141145
" description=\"Code Reviewer who can review the code.\",\n",
142146
")\n",
143147
"\n",

0 commit comments

Comments
 (0)