fix bug: coroutine not awaited

This commit is contained in:
fiatrete
2023-06-16 15:58:57 +08:00
parent 501ea5198f
commit f8c9d1c636
+1 -1
View File
@@ -55,7 +55,7 @@ class GptAgent(BaseAgent):
"speak": assistant_reply, "speak": assistant_reply,
} }
elif reply_type == "function_call": elif reply_type == "function_call":
arguments = fix_json_using_multiple_techniques(assistant_reply["arguments"]) arguments = await fix_json_using_multiple_techniques(assistant_reply["arguments"])
return { return {
"function": assistant_reply["name"], "function": assistant_reply["name"],
"arguments": arguments "arguments": arguments