#4729 videotrans.configure.excepts.StopTask: Error code: 404

206.189* Posted at: 2 hours ago

Error code: 404:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 70, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1211, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1070, in request
openai.NotFoundError: Error code: 404

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 855, 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 72, in _item_task
videotrans.configure.excepts.StopTask: Error code: 404


=
system:Windows-10-10.0.26200-SP0
version:v4.00
frozen:True
language:zh
root_dir:D:/aaa

3 Replies

错误代码 404 表示请求的翻译 API 地址(Base URL)不存在。通常是您设置的 Base URL 末尾缺少 /v1、拼写错误,或选择了不兼容的路径。

解决方法:

  1. 打开顶部菜单 设置 或对应翻译渠道(如 OpenAI / 兼容AI / DeepSeek / 硅基流动)的配置界面。
  2. 检查 API 地址(Base URL) 是否正确:

    • 例如 DeepSeek:必须填写 https://api.deepseek.com/v1(末尾有 /v1
    • 硅基流动:https://api.siliconflow.cn/v1
    • 本地 Ollama:http://127.0.0.1:11434/v1
    • 其他兼容 OpenAI 接口的服务,通常都以 /v1 结尾。
  3. 模型名称 也需正确填写,例如 deepseek-chatQwen/Qwen2-7B-Instruct 等(可查阅对应平台文档)。
  4. 修改后保存,重新启动翻译任务。

请查阅相关文档:

gemini的Base URL是什么

Gemini 翻译渠道的 Base URL 并未在软件知识库中直接列出,通常由 Google Gemini API 决定。建议您按以下步骤操作:

  1. 打开软件顶部菜单:设置 → 翻译渠道设置 → Gemini AI
  2. 查看该配置界面中是否已自动填充 Base URL(例如 https://generativelanguage.googleapis.com/v1https://generativelanguage.googleapis.com/v1beta)。
  3. 如果界面为空,请参考 Google 官方文档获取最新 API 地址,并确保填写了正确的 API Key。
  4. 若仍无法连接,请提供该配置界面的截图或日志文件,以便进一步分析。

请查阅相关文档:

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.

Related resource