abse4411 / projz_renpy_translation

RenPy翻译 rpy翻译 RenPy机翻工具 - A translator for RenPy, renpy translation, rpy translation, renpy translator
GNU General Public License v3.0
115 stars 12 forks source link

Translator is crashed #28

Open xiaoshushu1211 opened 3 months ago

xiaoshushu1211 commented 3 months ago

如果不开启renpy游戏,启动ollama,启动翻译服务器, 会报错:Translator is stopped by the user. 控制台如下:

Apply a translator: CloseAI/qwen:0.5b, translation target: Auto->Chinese Max turn for chat is set to: 8 Release resources of the translator... Closing the OpenAI client... Translator is stopped by the user.

如果开启renpy界面后,启动ollama,启动翻译服务器。 会报错Translator is crashed! 控制台如下:

ERROR:root:Error code: 503 Traceback (most recent call last): File "local_server\index.py", line 81, in run File "trans\base.py", line 24, in translate_batch File "trans\base.py", line 24, in File "translation_provider\closeapi.py", line 33, in translate File "trans\openai_api\wraaper.py", line 106, in translate File "openai_utils_utils.py", line 275, in wrapper File "openai\resources\chat\completions.py", line 667, in create File "openai_base_client.py", line 1213, in post File "openai_base_client.py", line 902, in request File "openai_base_client.py", line 978, in _request File "openai_base_client.py", line 1026, in _retry_request File "openai_base_client.py", line 978, in _request File "openai_base_client.py", line 1026, in _retry_request File "openai_base_client.py", line 993, in _request openai.InternalServerError: Error code: 503 Release resources of the translator... Closing the OpenAI client... Translator is crashed!


测试了qwen 0.5b,4b以及qwen2 7b。 都有以上问题 测试了lm-studio的API也是一样。 不知为何

abse4411 commented 3 months ago

使用时关闭代理软件。

xiaoshushu1211 commented 3 months ago

未开启代理软件,而且本地ollama可以正常run各个模型。

abse4411 commented 3 months ago

你好,你可以尝试重新下载最新libs和exe进行重新装,目前我没有遇到这个问题。UI界面选择的模型必须是ollama list中出现的,如果没有可以手动输入,再点击应用即可。