#1331 videotrans.configure._except.StopRetry: The thinking budget 1000000 is invalid. Please choose a value between 0 and 245

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

翻译字幕阶段出错:[Gemini AI] The thinking budget 1000000 is invalid. Please choose a value between 0 and 24576. :
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': 'The thinking budget 1000000 is invalid. Please choose a value between 0 and 24576.', '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\trans_create.py", line 404, 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: The thinking budget 1000000 is invalid. Please choose a value between 0 and 24576.


=
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 AI 的 "thinking budget" 参数设置超出了有效范围。错误信息显示您设置的值为 1000000,但有效范围是 0 到 24576。

请按以下步骤解决:

  1. 在软件主界面,点击菜单栏的 翻译设置
  2. 在翻译渠道中选择 Gemini AI
  3. 点击右侧的 设置 按钮
  4. 找到 "thinking budget" 参数,将其值修改为 24576 以内的数字(建议使用默认值或较小的数值)
  5. 保存设置后重新尝试翻译

如果问题仍然存在,建议暂时切换到其他翻译渠道(如 Google、Microsoft 或 DeepSeek)完成当前任务。

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

Similar issues already exist

Trending Questions