翻译字幕阶段出错 [兼容AI/本地模型] Could not parse response content as the length limit was reached - CompletionUsage(completion_tokens=8192, prompt_tokens=482, total_tokens=8674, completion_tokens_details=None, prompt_tokens_details=None)
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 67, in run
File "videotrans\translator\_base.py", line 105, 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\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 67, in run
File "videotrans\translator\_base.py", line 73, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 104, in _item_task
openai.LengthFinishReasonError: Could not parse response content as the length limit was reached - CompletionUsage(completion_tokens=8192, prompt_tokens=482, total_tokens=8674, completion_tokens_details=None, prompt_tokens_details=None)
[TransCreate]翻译视频: self.is_copy_video=True,self.video_codec_num=264,self.is_audio_trans=False,self.video_info={'video_fps': 29.97002997002997, 'r_frame_rate': 29.97002997002997, 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 1920, 'height': 1080, 'time': 7398557, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: E:/迅雷云盘/bit/fanyi/[email protected]4,
输出结果保存到文件夹: E:/迅雷云盘/bit/fanyi/_video_out/hhd800.com@MIDA-728-mp4,
临时文件夹: C:/Users/kjncy/Downloads/win-pyvideotrans-v4.12-0908/tmp/3676/24471b2da7
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:openai-whisper(内置), large-v3-turbo, 发音语言: 日语, 断句方式:默认断句
翻译渠道:兼容AI/本地模型,原始语言:日语,目标语言:简体中文, 未选 发送完整字幕
输出字幕格式: 目标语言在上双字幕
代理地址:http://127.0.0.1:7897
=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:C:/Users/kjncy/Downloads/win-pyvideotrans-v4.12-0908