#1212 videotrans.configure._except.StopRetry: You exceeded your current quota, please check your plan and billing details. Fo

124.244* Posted at: 2 days ago 👁19

网络连接失败。注意:某些国外服务需要科学上网才能访问: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: 429 RESOURCE_EXHAUSTED. {'error': {'code': 429, 'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/usage?tab=rate-limit. ', 'status': 'RESOURCE_EXHAUSTED'}}

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 920, 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: You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/usage?tab=rate-limit.


=
system:Windows-10-10.0.19045-SP0
version:v3.82
frozen:True
language:zh
root_dir:D:/win-videotrans-v3.82_20251019_125144

1 Replies

错误信息显示您在使用 Gemini 翻译服务时遇到了配额超限问题(429 RESOURCE_EXHAUSTED),而不是网络连接失败。这通常是因为您的 Gemini API 配额已用完或超出了速率限制。

请按以下步骤解决:

  1. 检查 Gemini API 配额和账单

    • 访问 Google AI Studio 使用量页面 查看您的当前使用情况和配额限制。
    • 确保您的账户有足够的配额,并且账单信息正确无误。
  2. 切换翻译渠道

    • 在软件的 翻译设置 菜单中,暂时将翻译渠道切换到其他可用的服务,例如 Google翻译Microsoft翻译 或配置了有效API密钥的其他AI模型(如DeepSeek、OpenAI等)。
  3. 调整翻译参数(如果坚持使用Gemini)

    • 工具/选项 -> 高级选项 中,尝试减小“同时翻译的字幕数”(例如设为1),这可以降低请求频率,避免触发速率限制。

如果问题持续,请确认您的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