#7081 File Not Foundhttp://127.0.0.1:8080/v1/models

240e**9c00 Posted at: 1 hour ago

File Not Found
http://127.0.0.1:8080/v1/models
{'model': 'qwen3.6', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 8192}:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 90, in _item_task
File "videotrans\translator\_openaicompat.py", line 51, in _create_completion
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': {'code': 404, 'message': 'File Not Found', 'type': 'not_found_error'}}

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\_runner.py", line 67, in run
File "videotrans\translator\_base.py", line 71, in run
File "videotrans\translator\_base.py", line 209, 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 95, in _item_task
videotrans.configure.excepts.StopTask: File Not Found
http://127.0.0.1:8080/v1/models
{'model': 'qwen3.6', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 8192}


=
system:Windows-10-10.0.26200-SP0
version:v4.11
frozen:True
language:zh
root_dir:M:/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 1 hour ago

这是典型的 404 NotFound 错误,核心原因是您配置的 OpenAI 兼容 API 地址或模型名称与本地服务实际提供的不匹配。

排查步骤:

  1. 检查 API 地址:确认您填写的是服务的基础地址,例如 http://127.0.0.1:8080(或 http://127.0.0.1:8080/v1),不要包含 /v1/models 这类后缀。软件内部会根据您填的地址自动拼接 /v1/chat/completions
  2. 检查模型名称:确认 qwen3.6 是您本地部署服务中实际存在的模型名。如果服务端模型名是 qwen3.6 但大小写或空格不一致,也会报 404。
  3. 确认服务已启动:访问 http://127.0.0.1:8080/v1/models 看是否能返回 JSON 列表,如果无法访问则服务未启动或端口错误。
  4. 代理问题:如果您的本地服务在 127.0.0.1,请确保软件内没有填写无效代理,否则请求可能被错误转发。
  5. API 密钥:如果本地服务需要密钥,请在设置中正确填写;若不需要,请留空或填写任意占位符。

如果上述检查后仍报错,请提供:

  • 您填写的具体 API 地址(可隐藏密钥)
  • 服务端返回的模型列表截图
  • logs/ 目录下最新日志文件底部约 30 行内容

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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 via ko-fi.com

Related resource