翻译字幕阶段出错 [兼容AI/本地模型] 内容太长超出最大允许Token,请减小内容或增大max_token,或者降低每次发送字幕行数
Could not parse response content as the length limit was reached - CompletionUsage(completion_tokens=4096, prompt_tokens=5267, total_tokens=9363, completion_tokens_details=None, prompt_tokens_details=None)
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 68, in run
File "videotrans\translator\_base.py", line 107, 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 421, in exc_check
tenacity.RetryError: RetryError[]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "videotrans\task\job.py", line 35, in run
File "videotrans\task\job.py", line 137, in process_task
File "videotrans\task\translate_srt.py", line 51, in trans
File "videotrans\translator\_runner.py", line 67, in run
File "videotrans\translator\_base.py", line 74, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 98, in _item_task
openai.LengthFinishReasonError: Could not parse response content as the length limit was reached - CompletionUsage(completion_tokens=4096, prompt_tokens=5267, total_tokens=9363, completion_tokens_details=None, prompt_tokens_details=None)
[TranslateSrt]翻译字幕: OutputFormat=单语字幕
[TaskCfgSTS]
原始输入文件名: F:/哔哩哔哩/【原神 录播生肉】屠鸟哥 7.0魔神任务 第二幕 2026-8-20/【原神】【半熟机翻 屠鸟哥】7.0魔神任务 part3ParakeetEN.srt,
输出结果保存到文件夹: K:/win-pyvideotrans-v4.09/output/translate
翻译渠道:兼容AI/本地模型,原始语言:English,目标语言:Simplified Chinese, 未选 发送完整字幕