Cosmos01 / aichat-chatGPT

HoshinoBot aichat插件魔改GPT-3.5 API版本
Apache License 2.0
51 stars 7 forks source link

发生错误: asyncio.run() cannot be called from a running event loop #3

Closed a7236723 closed 1 year ago

a7236723 commented 1 year ago

[2022-12-11 11:56:30,985 人工智障] INFO: Message 1495289549 triggered init_neko. /root/HoshinoBot/hoshino/modules/aichat-chatGPT/aichat.py:63: RuntimeWarning: coroutine 'AsyncChatbot.get_chat_response' was never awaited return f"发生错误: {str(e)}" RuntimeWarning: Enable tracemalloc to get the object allocation traceback

后台显示如上,QQ回复如标题。

Cosmos01 commented 1 year ago

抱歉,我重新装了一遍,也并没有复现出这个问题。我也不太清楚是什么情况

LDsylsp commented 1 year ago

我也碰上这个问题了,不知道怎么解决orz

Cosmos01 commented 1 year ago

知道原因了,新版本revChatGPT不兼容,执行一下pip install revChatGPT==0.0.35

Cosmos01 commented 1 year ago

他今天刚刚更新的,绝了

Cosmos01 commented 1 year ago

我也碰到这个问题了,不知道怎么解决orz

pip install revChatGPT==0.0.35

LDsylsp commented 1 year ago

成功了,感谢大佬