#6090 The supported API model names are deepseek-v4-pro or deepseek-v4-flash, but you passed deepseek-chat.https://api.deepsee

210.79* Posted at: 18 hours ago

The supported API model names are deepseek-v4-pro or deepseek-v4-flash, but you passed deepseek-chat.
https://api.deepseek.com/v1/
{'model': 'deepseek-chat', 'timeout': 300, 'temperature': 0.2, 'max_tokens': 8192}:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 77, 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.BadRequestError: Error code: 400 - {'error': {'message': 'The supported API model names are deepseek-v4-pro or deepseek-v4-flash, but you passed deepseek-chat.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_request_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 63, in run
File "videotrans\translator\_base.py", line 71, in run
File "videotrans\translator\_base.py", line 206, 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 82, in _item_task
videotrans.configure.excepts.StopTask: The supported API model names are deepseek-v4-pro or deepseek-v4-flash, but you passed deepseek-chat.
https://api.deepseek.com/v1/
{'model': 'deepseek-chat', 'timeout': 300, 'temperature': 0.2, 'max_tokens': 8192}

1 Replies

错误原因:你在 DeepSeek 翻译渠道配置中使用了旧的模型名称 deepseek-chat,而当前软件支持的 DeepSeek 模型为 deepseek-v4-prodeepseek-v4-flash

解决方法

  1. 打开软件,点击顶部菜单 翻译设置 → 选择 DeepSeek 渠道。
  2. 在模型名称(Model)输入框中,将 deepseek-chat 改为 deepseek-v4-prodeepseek-v4-flash
  3. 保存设置后重试翻译任务。
如果找不到模型输入框,请检查软件是否为最新版本(v4.07),旧版可能不提供此项修改,建议升级至最新版。

请查阅相关文档:

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 via ko-fi.com

Dondate via PayPal

Related resource