#879 Error:response=ChatCompletion(id='jJ_maOCJC6PWvdIPs5nusA8', choices=[Choice(finish_reason='length', index=0, logprobs=No

*1f:1201* Posted at: 6 hours ago 👁6

Error:response=ChatCompletion(id='jJ_maOCJC6PWvdIPs5nusA8', choices=[Choice(finish_reason='length', index=0, logprobs=None, message=ChatCompletionMessage(content="```xml\n\nWhy is Zhong Ying called the number one jungler? In a 100-star match, at 2 minutes and 50 seconds, he buys the large jungle item. A perfect farming rhythm. Whether it's kiting or ambushing for opportunities, every aspect is top-tier.\nIf the number one professional jungler, AG Zhong Ying, uses Grand Arbiter, how strong would he be in solo queue?\nWithout further ado, let's look at the in-game footage.\nWhy start with red buff? Let's analyze the team compositions.\nFirst, on our side's mid and side lanes, we have Zhenji and Li Xin. The top lane has the marksman and support together, so we have no lane priority in bot and mid.\nIf Grand Arbiter starts with blue buff, he's easily invaded in the red buff area by Agudo, and the twin boars might also be stolen.\nChoosing to start on the side lane is also to protect resources as much as possible.\nHave a teammate keep an eye on the blue buff area, just so it doesn't get stolen.\nStarting red and clearing upwards has a small disadvantage,\nthat is, you can't gank the side lane, and Li Xin is easily suppressed.\nTherefore, we see Zhongyi choose to start red and clear downwards, securing the small camps first before going mid, allowing him to catch the second mid wave.\n", refusal=None, role='assistant', annotations=None, audio=None, function_call=None, tool_calls=None))], created=1759944588, model='gemini-2.5-pro', object='chat.completion', service_tier=None, system_fingerprint=None, usage=CompletionUsage(completion_tokens=313, prompt_tokens=2243, total_tokens=10332, 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 because the AI translation engine (Gemini in this case) is returning an incomplete translation due to hitting its token limit (finish_reason='length'). The translation is cut off mid-sentence.

Quick Solution:

Modify the prompt file for the Gemini translator to instruct it to be more concise and fit within the token limit.

Detailed Steps:

1. Navigate to your pyVideoTrans software directory.

2. Go into the videotrans folder.

3. Find and open the prompt file for Gemini translation. It will be named gemini.txt (if your software interface is in Chinese) or gemini-en.txt (if the interface is in English).

4. Edit the text in this file. Add a clear instruction at the beginning, such as:

> Please ensure the translation is concise and stays well within the token limit. Do not produce overly long outputs.

5. Save the file and restart pyVideoTrans.

6. Try the translation task again.

This adjustment should help prevent the AI from generating responses that are too long and get truncated.

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