#1605 videotrans.configure._except.StopRetry: Unable to submit request because thinking is not supported by this model. Learn

38.54* Posted at: 10 hours ago 👁21

Unable to submit request because thinking is not supported by this model. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini:Traceback (most recent call last):
File "videotrans\translator\_gemini.py", line 132, in _item_task
File "google\genai\models.py", line 5783, in generate_content_stream
File "google\genai\models.py", line 4666, in _generate_content_stream
File "google\genai\_api_client.py", line 774, in request_streamed
File "google\genai\_api_client.py", line 672, in _request
File "google\genai\errors.py", line 101, in raise_for_response
google.genai.errors.ClientError: 400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': 'Unable to submit request because thinking is not supported by this model. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini', '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\__init__.py", line 931, in run
File "videotrans\translator\_base.py", line 78, in run
File "videotrans\translator\_base.py", line 95, in _run_text
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\_gemini.py", line 152, in _item_task
videotrans.configure._except.StopRetry: Unable to submit request because thinking is not supported by this model. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini


=
system:Windows-10-10.0.26200-SP0
version:v3.86
frozen:True
language:zh
root_dir:D:/win-videotrans

4 Replies

错误显示您使用的 Gemini 模型不支持 "thinking" 功能。这是因为 pyVideoTrans 在翻译时默认启用了 "思维链" 功能,但您选择的 Gemini 模型版本不支持此特性。

解决方案:

  1. 在翻译设置中关闭思维链:

    • 在主界面第 3 行翻译设置区域,点击 "翻译设置" 按钮。
    • 找到 "启用思维链" 或类似的选项,将其取消勾选。
    • 保存设置后重试翻译。
  2. 更换 Gemini 模型:

    • 如果上述选项不存在,请尝试在翻译设置中将模型切换为支持思维链的版本,如 gemini-1.5-flashgemini-1.5-pro
  3. 使用其他翻译渠道:

    • 如果问题持续,可暂时切换到 Google、DeepSeek 或其他支持的翻译渠道完成当前任务。

关闭思维链功能不会影响基本翻译质量,只是不使用高级推理模式。

请选择使用 gemini-2.5x系列模型

还是希望能继续选择2.0模型,2.5模型次数少一些

如果您希望继续使用 Gemini 2.0 系列模型,需要在翻译设置中关闭"思维链"功能:

  1. 在主界面第3行翻译设置区域,点击"翻译设置"按钮
  2. 找到"启用思维链"或"Chain of Thought"选项,将其取消勾选
  3. 保存设置后重新尝试翻译

Gemini 2.0 系列模型不支持思维链功能,而软件默认启用了此功能,因此会出现"thinking is not supported"的错误。关闭思维链后,Gemini 2.0 模型就能正常工作了。

如果您在设置中找不到相关选项,也可以考虑暂时切换到其他翻译渠道,如Google翻译或DeepSeek,这些渠道对2.0系列模型支持更好。

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

Trending Questions