[BUG] 作图功能可否加入太乙Stable diffusion的支持?因为可以直接用中文作为提示词作图 · Issue #711 · lss233/chatgpt

您所在的位置:网站首页 不支持中文路径 [BUG] 作图功能可否加入太乙Stable diffusion的支持?因为可以直接用中文作为提示词作图 · Issue #711 · lss233/chatgpt

[BUG] 作图功能可否加入太乙Stable diffusion的支持?因为可以直接用中文作为提示词作图 · Issue #711 · lss233/chatgpt

2023-05-02 03:11| 来源: 网络整理| 查看: 265

我对比了你发过来的两个项目的代码,我这里调用 sdwebui 的接口方式和 你发的那个项目其实是一样的。

唯一的可能性就是你的 sdwebui 启动的时候没开启接口了。 你要不然发一下日志我看看?

WX20230427-221846 上图是我用chatglm-6b-engineering项目(https://github.com/LemonQu-GIT/ChatGLM-6B-Engineering )和本项目分别调用太乙Stable diffusion时,在SD console下的显示。chatglm-6b-engineering调用结果就是 200 ok,本项目调用时就是404 Not Found。

以下是本项目调用太乙Stable diffusion时给出的报错日志:

2023-04-27 14:16:15.888 | ERROR | universal:handle_message:250 -

Traceback (most recent call last):

File "/app/conversation.py", line 165, in ask

images = await self.drawing_adapter.text_to_img(prompt) │ │ │ └ '一只鸡' │ │ └ │ └ └

File "/app/drawing/sdwebui.py", line 55, in text_to_img

resp.raise_for_status() │ └ └

File "/usr/local/lib/python3.11/site-packages/httpx/_models.py", line 749, in raise_for_status

loop.run_until_complete(asyncio.gather(*bots)) │ │ │ │ └ [self.run_forever() │ └ └

File "/usr/local/lib/python3.11/asyncio/base_events.py", line 607, in run_forever

self._run_once() │ └ └

File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1922, in _run_once

handle._run() │ └ └

File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run

self._context.run(self._callback, *self._args) │ │ │ │ │ └ │ │ │ │ └ │ │ │ └ │ │ └ │ └ └

File "/app/platforms/onebot_bot.py", line 151, in _

await handle_message( └

File "/app/universal.py", line 248, in handle_message

await action(session_id, message.strip(), conversation_context, respond) │ │ │ │ │ └ │ │ │ │ └ None │ │ │ └ │ │ └ '画一只鸡' │ └ 'friend-284094627' └

File "/app/universal.py", line 77, in call

await m.handle_request(session_id, message, respond, conversation_context, n) │ │ │ │ │ │ └ │ │ │ │ │ └ None │ │ │ │ └ │ │ │ └ '画一只鸡' │ │ └ 'friend-284094627' │ └ └

File "/app/middlewares/concurrentlock.py", line 43, in handle_request

await action(session_id, prompt, conversation_context, respond) │ │ │ │ └ │ │ │ └ None │ │ └ '画一只鸡' │ └ 'friend-284094627' └

File "/app/universal.py", line 77, in call

await m.handle_request(session_id, message, respond, conversation_context, n) │ │ │ │ │ │ └ │ │ │ │ │ └ None │ │ │ │ └ │ │ │ └ '画一只鸡' │ │ └ 'friend-284094627' │ └ └

File "/app/middlewares/middleware.py", line 9, in handle_request

await action(session_id, prompt, conversation_context, respond) │ │ │ │ └ │ │ │ └ None │ │ └ '画一只鸡' │ └ 'friend-284094627' └

File "/app/universal.py", line 77, in call

await m.handle_request(session_id, message, respond, conversation_context, n) │ │ │ │ │ │ └ │ │ │ │ │ └ None │ │ │ │ └ │ │ │ └ '画一只鸡' │ │ └ 'friend-284094627' │ └ └

File "/app/middlewares/ratelimit.py", line 23, in handle_request

await action(session_id, prompt, conversation_context, respond) │ │ │ │ └ │ │ │ └ None │ │ └ '画一只鸡' │ └ 'friend-284094627' └

File "/app/universal.py", line 77, in call

await m.handle_request(session_id, message, respond, conversation_context, n) │ │ │ │ │ │ └ │ │ │ │ │ └ None │ │ │ │ └ │ │ │ └ '画一只鸡' │ │ └ 'friend-284094627' │ └ └

File "/app/middlewares/timeout.py", line 27, in handle_request

await asyncio.wait_for(coro_task, config.response.max_timeout) │ │ │ │ │ └ 600.0 │ │ │ │ └ Response(mode='mixed', buffer_delay=15, default_ai='chatglm-api', error_format='出现故障!如果这个问题持续出现,请和我说“重置会话” 来开启一段新的会话,或者发送 “回滚... │ │ │ └ Config(onebot=Onebot(qq=3563179436, manager_qq=3563179436, reverse_ws_host='127.0.0.1', reverse_ws_port=8566), mirai=None, te... │ │ └ return fut.result() │ └ └ async for rendered in task: └

File "/app/utils/retry.py", line 21, in wrapper

async for result in func(*args, **kwargs): │ │ └ {'prompt': '画一只鸡', 'chain': MessageChain([Plain(text='画一只鸡')]), 'name': 'realdenis'} │ └ (,) └

File "/app/conversation.py", line 169, in ask

raise DrawingFailedException from e └

exceptions.DrawingFailedException

2023-04-27 14:16:15.896 | DEBUG | platforms.onebot_bot:respond:112 - [OneBot] 尝试发送消息:画图失败!原因: Client error '404 Not Found' for url 'http://127.0.0.1:7861/sdapi/v1/txt2img'

For more information check: https://httpstatuses.com/404

2023-04-27 14:16:15.897 | DEBUG | middlewares.timeout:on_respond:40 - [Timeout] 取消计时……



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3