Fix a dead loop bug caused by assigning two variables with opposite values. (#9447)

- Description: Fix a dead loop bug caused by assigning two variables
with opposite values.
pull/9454/head
Holmodi 11 months ago committed by GitHub
parent d5eb228874
commit 89a8121eaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -282,7 +282,7 @@
"user_agent.reset()\n",
"\n",
"# Initialize chats\n",
"assistant_msg = HumanMessage(\n",
"user_msg = HumanMessage(\n",
" content=(\n",
" f\"{user_sys_msg.content}. \"\n",
" \"Now start to give me introductions one by one. \"\n",
@ -290,8 +290,8 @@
" )\n",
")\n",
"\n",
"user_msg = HumanMessage(content=f\"{assistant_sys_msg.content}\")\n",
"user_msg = assistant_agent.step(user_msg)"
"assistant_msg = HumanMessage(content=f\"{assistant_sys_msg.content}\")\n",
"assistant_msg = assistant_agent.step(user_msg)"
]
},
{

@ -282,7 +282,7 @@
"user_agent.reset()\n",
"\n",
"# Initialize chats\n",
"assistant_msg = HumanMessage(\n",
"user_msg = HumanMessage(\n",
" content=(\n",
" f\"{user_sys_msg.content}. \"\n",
" \"Now start to give me introductions one by one. \"\n",
@ -290,8 +290,8 @@
" )\n",
")\n",
"\n",
"user_msg = HumanMessage(content=f\"{assistant_sys_msg.content}\")\n",
"user_msg = assistant_agent.step(user_msg)"
"assistant_msg = HumanMessage(content=f\"{assistant_sys_msg.content}\")\n",
"assistant_msg = assistant_agent.step(user_msg)"
]
},
{

Loading…
Cancel
Save