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

84.226* Posted at: 3 hours ago

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


=
system:Windows-10-10.0.26200-SP0
version:v4.00
frozen:True
language:en
root_dir:C:/Videotrans/win-pyvideotrans-v4.00

1 Replies

This error occurs because the AI translation channel you are using (most likely an OpenAI-compatible API) is receiving a reasoning_effort parameter set to null, but the specific model you selected only accepts values 'minimal', 'low', 'medium', or 'high'.

Solution:

  1. Go to Menu → Translation Settings → [your AI channel, e.g., OpenAI / DeepSeek / local model]
  2. Look for a field named reasoning_effort or reasoning_effort model in the configuration panel.
  3. Change its value from empty/null to one of the supported values: 'minimal', 'low', 'medium', or 'high'.

    • If the field is not visible, try setting it manually in Menu → Tools/Options → Advanced Options under the AI translation parameters section (if present).
  4. Save the settings and restart the translation task.

If the field does not exist or you are unsure, you can also temporarily switch to a different translation channel (e.g., DeepSeek or traditional translation) to bypass the issue until you identify the exact model's requirement.

Reference documents:

Post Your Reply