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

2804:7f0* Posted at: 9 hours ago 👁9

翻译字幕阶段出错:[Gemini AI] 网络连接失败。注意:某些国外服务需要科学上网才能访问:
Traceback (most recent call last):
File "videotrans\translator\_gemini.py", line 103, 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\task\job.py", line 146, in run
File "videotrans\task\_translate_srt.py", line 45, in trans
File "videotrans\translator\__init__.py", line 936, in run
File "videotrans\translator\_base.py", line 81, in run
File "videotrans\translator\_base.py", line 99, 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 123, 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.83
frozen:True
language:zh
root_dir:D:/win-videotrans-v3.83_20251103_013844

1 Replies

这个错误是由于您选择的 Gemini 模型不支持 "thinking" 功能导致的。请按以下步骤解决:

  1. 检查 Gemini 模型配置

    • 在翻译设置中,确认您选择的 Gemini 模型是否正确
    • 某些 Gemini 模型(如 gemini-1.5-flash)可能不支持某些高级功能
  2. 切换翻译渠道

    • 暂时切换到其他翻译渠道,如 Google、Microsoft 或 DeepSeek
    • 或者尝试使用其他 AI 模型如 OpenAI GPT 系列
  3. 调整高级选项

    • 在"工具/选项 -> 高级选项"中
    • 将"同时翻译的字幕数"设为 1
    • 取消勾选"发送完整字幕"
  4. 网络连接检查

    • 确保您的网络可以正常访问 Gemini API
    • 如需要,在翻译设置中配置正确的网络代理

如果问题持续存在,建议暂时使用其他翻译渠道完成当前任务。

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