dmMaze / BallonsTranslator

深度学习辅助漫画翻译工具, 支持一键机翻和简单的图像/文本编辑 | Yet another computer-aided comic/manga translation tool powered by deeplearning
GNU General Public License v3.0
2.25k stars 150 forks source link

请问 text-generatrion-webui 的参数应该如何填写? #480

Closed hhucchenyixiao closed 2 weeks ago

hhucchenyixiao commented 1 month ago

我想使用 Qwen2-7B-Instruc 进行翻译,所以在 app-url 填了 text-generatrion-webui 的 API URL

image image

但是会出现报错

 File "C:\software\miniconda3\envs\BallonsTranslator\Lib\site-packages\requests\models.py", line 435, in prepare_url
    raise InvalidURL(*e.args)
requests.exceptions.InvalidURL: Failed to parse: http://127.0.0.1:5000v1/chat/completions

请问是哪里搞错了呢?

PiDanShouRouZhouXD commented 4 weeks ago

requests.exceptions.InvalidURL: Failed to parse: http://127.0.0.1:5000v1/chat/completions

应该为http://127.0.0.1:5000/ 少了一个“/”,tgw翻译器的作者可能没做防呆设计。

hhucchenyixiao commented 2 weeks ago

requests.exceptions.InvalidURL: Failed to parse: http://127.0.0.1:5000v1/chat/completions

应该为http://127.0.0.1:5000/ 少了一个“/”,tgw翻译器的作者可能没做防呆设计。

多谢大佬