#711 openai.RateLimitError: Error code: 429 - [{'error': {'code': 429, 'message': 'You exceeded your current quota, please ch

*150.203* Posted at: 5 hours ago 👁14

请求频繁触发429,请调大暂停时间: Error code: 429 - [{'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.', 'status': 'RESOURCE_EXHAUSTED'}}]:Traceback (most recent call last):

File "videotrans\util\TestSrtTrans.py", line 17, in run

File "videotrans\translator\__init__.py", line 865, in run

File "videotrans\translator\_base.py", line 81, in run

File "tenacity\__init__.py", line 480, in __call__

File "videotrans\translator\_gemini.py", line 60, in _item_task

File "openai\_utils\_utils.py", line 287, in wrapper

File "openai\resources\chat\completions\completions.py", line 1150, in create

File "openai\_base_client.py", line 1259, in post

File "openai\_base_client.py", line 1047, in request

openai.RateLimitError: Error code: 429 - [{'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.', 'status': 'RESOURCE_EXHAUSTED'}}]

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
错误原因是您使用的 Gemini API 配额已耗尽或被限制,需要检查您的 Google AI Studio 账户和账单。

这是一个典型的 API 配额超限问题。错误信息明确指出:"You exceeded your current quota, please check your plan and billing details"。这意味着您使用的 Gemini 翻译服务已经达到了当前账户的用量限制。

解决方案:

1. 检查 Gemini API 配额和账单

  • 访问 Google AI Studio 并登录您的账户。
  • 检查您的使用量是否已超过免费配额或付费计划的限制。
  • 确认您的账单信息是否正确,特别是如果您使用的是付费计划,请确保支付方式有效。

2. 在 pyVideoTrans 中调整设置

  • 虽然错误提示"请调大暂停时间",但根本原因是配额耗尽,单纯调整暂停时间可能无法解决问题。
  • 不过,您仍然可以尝试在软件的翻译设置中,找到 Gemini 翻译相关的配置项,适当增大"请求间隔时间"(如果存在此设置),这有助于避免因请求频率过高而触发的临时限制。
  • 更重要的是,请确保您填入的 Gemini API 密钥是有效的,并且有足够的配额。

3. 备用方案

  • 如果 Gemini API 暂时无法使用,建议在 pyVideoTrans 的翻译设置中切换至其他翻译渠道,例如 Google 翻译、Microsoft 翻译、OpenAI ChatGPT 等,以继续您的工作。

总结: 此问题与 pyVideoTrans 软件本身无关,而是您使用的第三方 Gemini API 服务达到了用量限制。请优先按照上述步骤检查并处理您的 Gemini 账户配额问题。

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