From 1033b9578157d422b3205142826b9ae80ca6ac50 Mon Sep 17 00:00:00 2001 From: ChenXL97 <908926798@qq.com> Date: Sat, 18 Nov 2023 21:33:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AE=80=E5=8D=95=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robowaiter/llm_client/multi_rounds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robowaiter/llm_client/multi_rounds.py b/robowaiter/llm_client/multi_rounds.py index 6997d56..0726576 100644 --- a/robowaiter/llm_client/multi_rounds.py +++ b/robowaiter/llm_client/multi_rounds.py @@ -56,7 +56,7 @@ def parse_fix_question(question): response = new_response() fix_ans = fix_questions_dict[question] if len(fix_ans)<=1: #简单对话 - message = {'role': 'assistant', 'content': fix_ans, 'name': None, + message = {'role': 'assistant', 'content': fix_ans[0], 'name': None, 'function_call': None} else: reply, func,args = fix_ans