YiriMirai+revChatGPT(已失效)
-
此回复已被删除! -
@imi-123 修改了,是数据类型的问题。更新即可。
-
@Anstiya 好的
-
传入chatGPT的字符串长度存在限制,当超过一定限度会报错。增加记录模式。开启将添加新的问题作为生成素材,关闭则不添加。使用seed默认关闭。
命令如下记录模式
停止记录
-
刚刚更新了之后运行main.py会出现很长的一串错误
已读取prompt unhandled exception during asyncio.run() shutdown task: <Task finished name='Task-2' coro=<Lifespan.handle_lifespan() done, defined at C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\hypercorn\asyncio\lifespan.py:31> exception=LifespanFailureError('Lifespan failure in startup. \'Traceback (most recent call last):\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\mirai\\adapters\\websocket.py", line 141, in _receiver\n response = json.loads(await self.connection.recv())\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\websockets\\legacy\\protocol.py", line 568, in recv\n await self.ensure_open()\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\websockets\\legacy\\protocol.py", line 944, in ensure_open\n raise self.connection_closed_exc()\nwebsockets.exceptions.ConnectionClosedOK: received 1000 (OK) Auth Key错误; then sent 1000 (OK) Auth Key 错误\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\asyncio\\runners.py", line 44, in run\n return loop.run_until_complete(main)\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\asyncio\\base_events.py", line 629, in run_until_complete\n self.run_forever()\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\asyncio\\windows_events.py", line 316, in run_forever\n super().run_forever()\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\asyncio\\base_events.py", line 596, in run_forever\n self._run_once()\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\asyncio\\base_events.py", line 1882, in _run_once\n handle._run()\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\asyncio\\events.py", line 80, in _run\n self._context.run(self._callback, *self._args)\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\mirai\\adapters\\base.py", line 35, in wrapped\n return await func(self, *args, **kwargs)\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\mirai\\adapters\\websocket.py", line 151, in _receiver\n raise SystemExit()\nSystemExit\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\starlette\\routing.py", line 671, in lifespan\n async with self.lifespan_context(app):\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\starlette\\routing.py", line 566, in __aenter__\n await self._router.startup()\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\starlette\\routing.py", line 648, in startup\n await handler()\n File "C:\\Users\\wz178\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\mirai\\bot.py", line 228, in startup\n await asyncio.gather(*coros)\nasyncio.exceptions.CancelledError\n\'') created at C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\hypercorn\asyncio\run.py:76> Traceback (most recent call last): File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\adapters\websocket.py", line 141, in _receiver response = json.loads(await self.connection.recv()) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\protocol.py", line 568, in recv await self.ensure_open() File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\protocol.py", line 944, in ensure_open raise self.connection_closed_exc() websockets.exceptions.ConnectionClosedOK: received 1000 (OK) Auth Key错误; then sent 1000 (OK) Auth Key错误 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 629, in run_until_complete self.run_forever() File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 316, in run_forever super().run_forever() File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 596, in run_forever self._run_once() File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1882, in _run_once handle._run() File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\adapters\base.py", line 35, in wrapped return await func(self, *args, **kwargs) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\adapters\websocket.py", line 151, in _receiver raise SystemExit() SystemExit During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\starlette\routing.py", line 671, in lifespan async with self.lifespan_context(app): File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\starlette\routing.py", line 566, in __aenter__ await self._router.startup() File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\starlette\routing.py", line 648, in startup await handler() File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 228, in startup await asyncio.gather(*coros) asyncio.exceptions.CancelledError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\hypercorn\asyncio\lifespan.py", line 43, in handle_lifespan await self.app( File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\hypercorn\app_wrappers.py", line 33, in __call__ await self.app(scope, receive, send) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 236, in __call__ await self._asgi(scope, recv, send) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\asgi.py", line 165, in __call__ await self.app(scope, recv, send) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\starlette\applications.py", line 125, in __call__ await self.middleware_stack(scope, receive, send) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\starlette\middleware\errors.py", line 149, in __call__ await self.app(scope, receive, send) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\starlette\middleware\exceptions.py", line 55, in __call__ await self.app(scope, receive, send) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\starlette\routing.py", line 695, in __call__ await self.lifespan(scope, receive, send) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\starlette\routing.py", line 680, in lifespan await send({"type": "lifespan.startup.failed", "message": exc_text}) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\hypercorn\asyncio\lifespan.py", line 101, in asgi_send raise LifespanFailureError("startup", message["message"]) hypercorn.utils.LifespanFailureError: Lifespan failure in startup. 'Traceback (most recent call last): File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\adapters\websocket.py", line 141, in _receiver response = json.loads(await self.connection.recv()) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\protocol.py", line 568, in recv await self.ensure_open() File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\protocol.py", line 944, in ensure_open raise self.connection_closed_exc() websockets.exceptions.ConnectionClosedOK: received 1000 (OK) Auth Key错误; then sent 1000 (OK) Auth Key错误 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 629, in run_until_complete self.run_forever() File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 316, in run_forever super().run_forever() File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 596, in run_forever self._run_once() File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1882, in _run_once handle._run() File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\adapters\base.py", line 35, in wrapped return await func(self, *args, **kwargs) File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\adapters\websocket.py", line 151, in _receiver raise SystemExit() SystemExit During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\starlette\routing.py", line 671, in lifespan async with self.lifespan_context(app): File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\starlette\routing.py", line 566, in __aenter__ await self._router.startup() File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\starlette\routing.py", line 648, in startup await handler() File "C:\Users\wz178\AppData\Local\Programs\Python\Python39\lib\site-packages\mirai\bot.py", line 228, in startup await asyncio.gather(*coros) asyncio.exceptions.CancelledError
-
@imi-123 应该是来自yirimirai的报错,客户端断开连接了。重启mirai-api-http并检查配置。
-
@Anstiya 好的,谢谢大佬
-
使用seed会报错,是因为我手抖多敲了个逗号,已修改.
使用官方api部分代码已不可用,明天修 -
现在chatgpt的session每隔一小会会刷新一次,怎么办
-
官网在调整。暂时不能用了
-
@Marze-one 因为官网用了cloudFlare,但是这块我不是很懂,等到官网恢复后我试试看能不能做个自动获取。
-
项目已更新,恢复正常使用。
12/13 18:48
寄了,等acheong08佬更新 -
此回复已被删除! -
更新。
-
大佬你好!
File "C:\Users\XXXXXX\Desktop\3\main.py", line 4, in <module>
from mirai import Mirai, WebSocketAdapter,GroupMessage,Image
ModuleNotFoundError: No module named 'mirai'
这是什么情况?望大佬答复 -
现在还能用吗
-
@liaozhangsheng 官方api还能用,revChatgpt的项目因为cloudflare暂时停更了。
-
@WJHXD1B pip install yiri-mirai 可以解决。现在因为revChatgpt项目暂时停更了,所以只能用官方api,使用revchatgpt有可能由于IP过于活跃被官网限制访问。
-
@Anstiya 好的谢谢大佬
-
@WJHXD1B 刚才修改了点错误,如果已经下载项目需要更新一下。