#1837 openai.BadRequestError: Error code: 400 - {'error': {'message': 'Model Not Exist', 'type': 'invalid_request_error', 'par

205.185* Posted at: 17 hours ago 👁13

请检查输入内容是否过长,若涉及参考音频,请检查是否存在:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 908, in run
File "videotrans\translator\_base.py", line 80, in run
File "videotrans\translator\_base.py", line 143, 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 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_deepseek.py", line 55, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1147, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1047, in request
openai.BadRequestError: Error code: 400 - {'error': {'message': 'Model Not Exist', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_request_error'}}


=
system:Windows-10-10.0.19045-SP0
version:v3.82
frozen:True
language:zh
root_dir:D:/win-videotrans-v3.82_20251019_125144

1 Replies

错误信息显示 Model Not Exist,这表明您配置的 DeepSeek 模型名称不正确或已失效。

请按以下步骤检查和修正:

  1. 检查模型名称:在软件主界面,点击 翻译设置 -> DeepSeek,检查“模型名称”字段。
  2. 使用正确模型名:DeepSeek 当前可用的模型名称应为 deepseek-chat。请确保填写正确。
  3. 验证 API Key:确认您的 DeepSeek API Key 有效且未过期。
  4. 检查网络代理:如果您的网络环境需要代理才能访问 DeepSeek,请确保在软件主界面第5行的“网络代理”处填写了正确的代理地址(格式如 http://127.0.0.1:7860)。

完成以上设置后,重新尝试翻译任务。

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions