#6908 Thinking level is not supported for this model.:Traceback (most recent call last): File

45.125.**7 Posted at: 1 hour ago

Thinking level is not supported for this model.:Traceback (most recent call last):
File "videotrans\translator\_gemini.py", line 95, in _item_task
File "google\genai\models.py", line 5407, in generate_content_stream
File "google\genai\models.py", line 4101, in _generate_content_stream
File "google\genai\_api_client.py", line 1405, in request_streamed
File "google\genai\_api_client.py", line 1224, in _request
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 420, in exc_check
File "tenacity\__init__.py", line 187, in reraise
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 "google\genai\_api_client.py", line 1189, in _request_once
File "google\genai\errors.py", line 121, in raise_for_response
File "google\genai\errors.py", line 146, in raise_error
google.genai.errors.ClientError: 400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': 'Thinking level is not supported for this model.', 'status': 'INVALID_ARGUMENT'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 67, in run
File "videotrans\translator\_base.py", line 71, in run
File "videotrans\translator\_base.py", line 209, 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\_gemini.py", line 117, in _item_task
videotrans.configure.excepts.StopTask: Thinking level is not supported for this model.


=
system:Windows-10-10.0.22631-SP0
version:v4.11
frozen:True
language:zh
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.07

1 Replies

#1 DeepSeek reply at 1 hour ago

该错误是因为 Gemini 翻译渠道启用了“思考级别”(Thinking level)参数,但您当前选择的 Gemini 模型不支持该参数,导致 Google API 返回 400 错误。

解决方法(任选其一):

  1. 打开 菜单 -> 翻译设置 -> Gemini,将“思考级别”设为“无”或关闭思考模式,保存后重试。
  2. 更换为支持思考级别的模型(如 gemini-2.5-flashgemini-2.5-pro)。
  3. 若仍不可用,可改用 DeepSeek、OpenAI 等其他 AI 翻译渠道,效果同样优秀。

请查阅相关文档:

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