#899 no choices:response=ChatCompletion(id='wCjoaNOMGuifvdIP5oPz2Ac', choices=[Choice(finish_reason='length', index=0, logpro

2a00:1f* Posted at: 5 hours ago 👁5

no choices:response=ChatCompletion(id='wCjoaNOMGuifvdIP5oPz2Ac', choices=[Choice(finish_reason='length', index=0, logprobs=None, message=ChatCompletionMessage(content=None, refusal=None, role='assistant', annotations=None, audio=None, function_call=None, tool_calls=None))], created=1760045248, model='gemini-2.5-pro', object='chat.completion', service_tier=None, system_fingerprint=None, usage=CompletionUsage(completion_tokens=0, prompt_tokens=1848, total_tokens=9939, completion_tokens_details=None, prompt_tokens_details=None))

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:en

1 Replies

This article was replied by DeepSeek
This error occurs when using the Gemini AI translation service, where the API response is incomplete due to token length limitations. The response shows finish_reason='length', indicating the translation output was cut off because it exceeded the maximum token limit for a single response.

Solution:

1. Reduce the amount of text sent per request: Go to the menu Tools → Advanced Options and decrease the value for "AI translation lines per batch" (aitrans_thread). Try setting it to a lower number (e.g., 5 or 10) to send fewer subtitle lines at once.

2. Alternatively, use a different AI translation service: If the issue persists, switch to another translation provider (e.g., Google Translate, Microsoft Translator, or DeepSeek) which may have higher token limits or better handling for long texts.

3. Check your API key and quota: Ensure your Gemini API key is valid and has sufficient quota for longer responses.

If the problem continues, please provide the log file from videotrans/logs/{YYYYMMDD}.log for further analysis.

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