#3642 TaskCfgSTS(is_cuda=False, uuid='b640fd1f07', cache_folder=None, target_dir='E:/ytrans/output/translate', source_language

202.150* Posted at: 1 hour ago 👁5

Trans Error [Local/Compatible AI] Too many requests, please try again later or adjust settings Error code: 429 - {'error': {'message': 'Throttling: {"error":{"message":"The engine is currently overloaded, please try again later","type":"engine_overloaded_error"}}', 'type': 'Throttling', 'code': '429'}}
Traceback (most recent call last):
File "videotrans\task\job.py", line 174, in run
File "videotrans\task\_translate_srt.py", line 45, in trans
File "videotrans\translator\__init__.py", line 970, in run
File "videotrans\translator\_base.py", line 102, in run
File "videotrans\translator\_base.py", line 165, in _run_srt
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 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_localllm.py", line 55, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1192, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1070, in request
openai.RateLimitError: Error code: 429 - {'error': {'message': 'Throttling: {"error":{"message":"The engine is currently overloaded, please try again later","type":"engine_overloaded_error"}}', 'type': 'Throttling', 'code': '429'}}
TaskCfgSTS(is_cuda=False, uuid='b640fd1f07', cache_folder=None, target_dir='E:/ytrans/output/translate', source_language=None, source_language_code='Simplified Chinese', source_sub='E:/PH/15.srt', source_wav=None, source_wav_output=None, target_language=None, target_language_code='English', target_sub='E:/ytrans/output/translate/15.English.srt', target_wav=None, target_wav_output=None, name='E:/PH/15.srt', noextname='15', basename='15.srt', ext='srt', dirname='E:/PH', shound_del_name=None, translate_type=8)


=
system:Windows-10-10.0.26200-SP0
version:v3.97
frozen:True
language:en
root_dir:E:/ytrans

1 Replies

This error indicates that the AI translation service you are using (configured under "Local/Compatible AI") is rate-limited or overloaded, returning a 429 "Too Many Requests" error.

The solution is to reduce the request frequency to the AI service.

  1. Adjust Translation Settings:

    • Go to Menu -> Tools/Options -> Advanced Options.
    • In the "Subtitle Translation Adjustment" section:

      • Set "AI translation channel batch subtitle lines" to a lower value (e.g., 5 or 10).
      • Increase "Pause seconds after translation" to a higher value (e.g., 5 or 10 seconds).
      • Ensure "Send complete subtitles" is unchecked if you are using a model with limited context.
  2. Check AI Service Configuration:

    • If you are using a self-hosted local model (e.g., Ollama), ensure the service can handle the request load. You may need to increase its resources or reduce concurrent requests from pyVideoTrans.
    • If you are using a paid online API (e.g., DeepSeek, OpenAI), check your account's rate limits on their platform. You might be exceeding the requests-per-minute (RPM) limit for your subscription tier.
  3. General Throttling:

    • Avoid running multiple translation tasks simultaneously. You can enable "Force serial execution during batch translation" in the "General Settings" section of Advanced Options.

Please refer to the relevant documentation:

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.

Related resource