#8145 The supported API model names are deepseek-flash, deepseek-v4-pro, but you passed deepseek-v4.1-flash. (request_id: 73e7

2409**a079 Posted at: 2 hours ago

The supported API model names are deepseek-flash, deepseek-v4-pro, but you passed deepseek-v4.1-flash. (request_id: 73e7b638-522b-42d5-a37a-ecde6141b467)
https://api.deepseek.com/v1/
{'model': 'deepseek-v4.1-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384}
{'thinking': {'type': 'disabled'}}:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 90, in _item_task
File "videotrans\translator\_openaicompat.py", line 40, 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.BadRequestError: Error code: 400 - {'error': {'message': 'The supported API model names are deepseek-flash, deepseek-v4-pro, but you passed deepseek-v4.1-flash. (request_id: 73e7b638-522b-42d5-a37a-ecde6141b467)', '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 71, in run
File "videotrans\translator\_base.py", line 82, in run
File "videotrans\translator\_base.py", line 165, 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 101, in _item_task
videotrans.configure.excepts.StopTask: The supported API model names are deepseek-flash, deepseek-v4-pro, but you passed deepseek-v4.1-flash. (request_id: 73e7b638-522b-42d5-a37a-ecde6141b467)
https://api.deepseek.com/v1/
{'model': 'deepseek-v4.1-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384}
{'thinking': {'type': 'disabled'}}


=
system:Windows-10-10.0.26200-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/Program Files/pyVideoTrans

1 Replies

#1 DeepSeek reply at 2 hours ago

DeepSeek API 返回 400 错误,原因是当前填写的模型名称 deepseek-v4.1-flash 不在该 API 支持的列表中。DeepSeek 当前仅接受 deepseek-flash 和 deepseek-v4-pro 这两个模型名。

解决步骤:

  1. 打开软件顶部菜单:翻译设置 -> DeepSeek;
  2. 将“模型名称”改为 deepseek-flash 或 deepseek-v4-pro(二选一);
  3. 保存后重新测试翻译即可。

另外,你的安装路径是 D:/Program Files/pyVideoTrans,若以后遇到启动失败、保存配置或权限类报错,建议将软件移动到非系统盘纯英文目录(如 D:\pyVideoTrans)。但本次报错与此无关。

请查阅相关文档:

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