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.
This commit is contained in:
Holmodi 2023-08-18 22:12:53 +08:00 committed by GitHub
parent d5eb228874
commit 89a8121eaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -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)"
]
},
{

View File

@ -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)"
]
},
{