fix: 修复ChatGPT逆向库回答报错的问题

This commit is contained in:
Soulter
2023-05-14 20:39:15 +08:00
parent f46de3d518
commit c5bdad02e5
+1 -1
View File
@@ -571,7 +571,7 @@ def oper_msg(message,
send_message(platform, message, f"OpenAI API错误, 原因: {str(e)}", msg_ref=msg_ref, gocq_loop=gocq_loop, qqchannel_bot=qqchannel_bot, gocq_bot=gocq_bot)
elif chosen_provider == REV_CHATGPT:
hit, command_result = command_rev_chatgpt.check_command(qq_msg, role, platform=platform, message=message, cached_plugins=cached_plugins)
hit, command_result = command_rev_chatgpt.check_command(qq_msg, role, platform=platform, message_obj=message, cached_plugins=cached_plugins)
if not hit:
try:
chatgpt_res = str(rev_chatgpt.text_chat(qq_msg))