#4867 openai.BadRequestError: Error code: 400 - {'error': {'message':

2401:e180* Posted at: 4 hours ago

Unsupported value: 'reasoning_effort' does not support null with this model. Supported values are: 'none', 'low', 'medium', 'high', and 'xhigh'.: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 73, 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': "Unsupported value: 'reasoning_effort' does not support null with this model. Supported values are: 'none', 'low', 'medium', 'high', and 'xhigh'.", 'type': 'invalid_request_error', 'param': 'reasoning_effort', 'code': 'unsupported_value'}}


=
system:Windows-10-10.0.26200-SP0
version:v4.00
frozen:True
language:zh
root_dir:C:/Users/stanl/Desktop/win-pyvideotrans-v4.00-528

1 Replies

这是由于 AI 翻译渠道使用的模型要求 reasoning_effort 参数必须为 nonelowmediumhighxhigh,但软件发送了 null 导致报错。

解决方案:

  1. 打开菜单 翻译设置 → 选择你使用的 AI 渠道(如 OpenAI/DeepSeek/兼容AI)。
  2. 在设置面板中找到 模型名称,改为不需要 reasoning_effort 参数的模型,例如 gpt-4ogpt-4-turbodeepseek-chat(具体名称根据你的渠道确定)。
  3. 如果必须使用当前模型(如 o1 系列),请检查该渠道设置面板是否有 reasoning_effort 选项,手动设为 none;若无此项,则务必更换模型。
  4. 保存设置后重试翻译。

请查阅相关文档:

Post Your Reply