#5030 {'model': 'hy-mt2:1.8b', 'frequency_penalty': 0, 'timeout': 300, 'max_completion_tokens': 8192, 'temperature': 0.2}

120.199* Posted at: 7 hours ago

Error code: 404 - {'error': {'message': "model 'hy-mt2:1.8b' not found", 'type': 'not_found_error', 'param': None, 'code': None}}
{'model': 'hy-mt2:1.8b', 'frequency_penalty': 0, 'timeout': 300, 'max_completion_tokens': 8192, 'temperature': 0.2}:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 75, in _item_task
File "openai\_utils\_utils.py", line 298, in wrapper
File "openai\resources\chat\completions\completions.py", line 1215, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1105, in request
openai.NotFoundError: Error code: 404 - {'error': {'message': "model 'hy-mt2:1.8b' not found", 'type': 'not_found_error', 'param': None, 'code': None}}

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 858, in run
File "videotrans\translator\_base.py", line 72, in run
File "videotrans\translator\_base.py", line 142, in _run_srt
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 78, in _item_task
videotrans.configure.excepts.StopTask: Error code: 404 - {'error': {'message': "model 'hy-mt2:1.8b' not found", 'type': 'not_found_error', 'param': None, 'code': None}}
{'model': 'hy-mt2:1.8b', 'frequency_penalty': 0, 'timeout': 300, 'max_completion_tokens': 8192, 'temperature': 0.2}


=
system:Windows-10-10.0.26200-SP0
version:v4.01
frozen:True
language:zh
root_dir:D:/shipingongju/vido

1 Replies

核心原因是你在“兼容AI/本地模型”翻译渠道中指定的模型名称 hy-mt2:1.8b 在目标 API 服务端不存在。

解决方法:

  1. 核对模型名称
    打开 菜单 → 翻译设置 → 本地大模型设置,检查“模型”输入框中的名称是否正确。例如,若使用 Ollama 部署,常见的名称格式如 qwen:latestllama3:8b;若使用其他兼容 OpenAI 的服务,需按服务商文档填写准确的模型 ID(注意大小写和版本号)。
  2. 确认 API 服务已部署该模型
    在部署该模型的终端或控制台中运行 ollama list(Ollama)或对应命令,确认 hy-mt2:1.8b 已成功加载。若未加载,需先拉取或启动该模型。
  3. 验证 API 地址正确性
    确保 API Base URL(如 http://localhost:11434/v1)填写无误,且服务端口未被其他程序占用。
  4. 测试 API 连通性
    可通过浏览器访问 http://localhost:11434/v1/models(Ollama)或类似路径,检查返回的模型列表是否包含你填写的名称。

如果以上步骤确认无误仍报错,请提供软件根目录下 logs/ 文件夹中最新的日志文件(复制底部约30行信息)以便进一步分析。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update. Dondate: ko-fi.com/jianchang512

Related resource