#5131 {'model': 'doubao-seed-2.0-pro', 'frequency_penalty': 0, 'timeout': 300, 'max_completion_tokens': 32768, 'temperature':

38.207* Posted at: 2 hours ago

Error code: 404 - {'error': {'code': 'InvalidEndpointOrModel.NotFound', 'message': 'The model or endpoint doubao-seed-2.0-pro does not exist or you do not have access to it. Request id: 0217812039529648b55878d95caf0a54b04de1dacd104ed937ed6', 'param': '', 'type': 'Not Found'}}
{'model': 'doubao-seed-2.0-pro', 'frequency_penalty': 0, 'timeout': 300, 'max_completion_tokens': 32768, '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': {'code': 'InvalidEndpointOrModel.NotFound', 'message': 'The model or endpoint doubao-seed-2.0-pro does not exist or you do not have access to it. Request id: 0217812039529648b55878d95caf0a54b04de1dacd104ed937ed6', 'param': '', 'type': 'Not Found'}}

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': {'code': 'InvalidEndpointOrModel.NotFound', 'message': 'The model or endpoint doubao-seed-2.0-pro does not exist or you do not have access to it. Request id: 0217812039529648b55878d95caf0a54b04de1dacd104ed937ed6', 'param': '', 'type': 'Not Found'}}
{'model': 'doubao-seed-2.0-pro', 'frequency_penalty': 0, 'timeout': 300, 'max_completion_tokens': 32768, 'temperature': 0.2}


=
system:Windows-10-10.0.28000-SP0
version:v4.01
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/win-pyvideotrans-v4.01-0602

1 Replies

这是字节跳动大模型翻译接口返回的 404 错误,核心原因是:你配置的模型名称 doubao-seed-2.0-pro 在当前火山引擎账户下不存在或未开通访问权限。

解决方案:

  1. 核对模型名称:打开软件顶部菜单栏 翻译设置 → 找到你当前使用的 字节大模型/阿里百炼 渠道设置面板,检查 模型名称 输入框中的值是否正确。

    • 正确的字节跳动翻译模型名称通常为 doubao-seed-x.x 类似格式(例如 doubao-seed-1.5),请以火山引擎控制台实际开通的模型为准。
    • 如果你不确定可用的模型名称,请登录 火山引擎控制台 → 找到 大模型服务平台(方舟) → 查看已开通的模型列表。
  2. 确认账户权限:该错误也表示你可能未开通该模型的调用权限。在火山引擎中,需先申请模型 doubao-seed-2.0-pro 的访问权限(部分模型需要单独申请)。请检查 API Key 对应的工作空间是否已被授权该模型。
  3. 更换备用翻译渠道:如果不急于纠正,可暂时改用其他翻译渠道:

    • 免费方案:微软翻译(无需配置)、Google翻译(需代理)
    • 付费方案:DeepSeek(推荐,需要 API Key)、OpenAI ChatGPT阿里百炼 Qwen
  4. 测试连接:在软件设置面板中,保存修改后,点击 “测试连接” 按钮验证是否能正常返回结果。

如果仍无法解决,请提供火山引擎控制台中你实际开通的模型名称和 API Key 的配置截图(注意隐藏敏感信息),以便进一步排查。

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