#4217 TaskCfgVTT(is_cuda=True, uuid='80811b8468', cache_folder='F:/win-pyvideotrans-v3.99-418/tmp/8448/80811b8468', target_dir

220.246* Posted at: 2 hours ago 👁6

翻译字幕阶段出错 [字节大模型] Error code: 400 - {'error': {'code': 'OutputTextSensitiveContentDetected', 'message': 'The request failed because the output text may contain sensitive information. Request id: 021776891265395336c0ccc8833e375a271994f02c20b0975d327', 'param': '', 'type': 'BadRequest'}}
Traceback (most recent call last):
File "videotrans\translator\_huoshan.py", line 45, in _item_task
File "openai\resources\responses\responses.py", line 898, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1070, in request
openai.BadRequestError: Error code: 400 - {'error': {'code': 'OutputTextSensitiveContentDetected', 'message': 'The request failed because the output text may contain sensitive information. Request id: 021776891265395336c0ccc8833e375a271994f02c20b0975d327', 'param': '', 'type': 'BadRequest'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 173, in run
File "videotrans\task\trans_create.py", line 659, in trans
File "videotrans\translator\__init__.py", line 969, in run
File "videotrans\translator\_base.py", line 97, in run
File "videotrans\translator\_base.py", line 161, in _run_srt
File "videotrans\translator\_huoshan.py", line 55, in _item_task
RuntimeError: Error code: 400 - {'error': {'code': 'OutputTextSensitiveContentDetected', 'message': 'The request failed because the output text may contain sensitive information. Request id: 021776891265395336c0ccc8833e375a271994f02c20b0975d327', 'param': '', 'type': 'BadRequest'}}
TaskCfgVTT(is_cuda=True, uuid='80811b8468', cache_folder='F:/win-pyvideotrans-v3.99-418/tmp/8448/80811b8468', target_dir='F:/AAA/Stress and Your Body/_video_out/14 - Stress, Judgment, and Impulse Control-mp4', source_language='英语', source_language_code='en', source_sub='F:/AAA/Stress and Your Body/_video_out/14 - Stress, Judgment, and Impulse Control-mp4/en.srt', source_wav='F:/win-pyvideotrans-v3.99-418/tmp/8448/80811b8468/en.wav', source_wav_output='F:/AAA/Stress and Your Body/_video_out/14 - Stress, Judgment, and Impulse Control-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='F:/AAA/Stress and Your Body/_video_out/14 - Stress, Judgment, and Impulse Control-mp4/zh-cn.srt', target_wav='F:/win-pyvideotrans-v3.99-418/tmp/8448/80811b8468/target.wav', target_wav_output='F:/AAA/Stress and Your Body/_video_out/14 - Stress, Judgment, and Impulse Control-mp4/zh-cn.m4a', name='F:/AAA/Stress and Your Body/14 - Stress, Judgment, and Impulse Control.mp4', noextname='14 - Stress, Judgment, and Impulse Control', basename='14 - Stress, Judgment, and Impulse Control.mp4', ext='mp4', dirname='F:/AAA/Stress and Your Body', shound_del_name=None, translate_type=13, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=1, model_name='large-v3', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='F:/AAA/Stress and Your Body/_video_out/14 - Stress, Judgment, and Impulse Control-mp4/14 - Stress, Judgment, and Impulse Control.mp4', novoice_mp4='F:/win-pyvideotrans-v3.99-418/tmp/8448/80811b8468/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=3, only_out_mp4=True, recogn2pass=True, output_srt=2, copysrt_rawvideo=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:zh
root_dir:F:/win-pyvideotrans-v3.99-418

1 Replies

翻译请求被字节火山大模型的内容安全策略拦截,提示输出文本可能包含敏感信息。

  1. 修改翻译内容:检查并修改待翻译的原始字幕文本,移除可能被误判为敏感的内容(如特定政治、暴力、色情相关词汇)。
  2. 更换翻译渠道:如果无法确定或修改敏感内容,可以暂时切换到其他翻译渠道(例如 DeepSeek、Google 翻译等)完成当前任务。
  3. 调整翻译设置:在 菜单-工具-高级选项-字幕翻译调整 中,尝试减少 AI翻译渠道每批字幕行数(例如从默认值降低到 5-10 行),分批发送可能有助于规避整体内容审查。
  4. 联系服务商:如果确认内容无问题,此错误属于误判,可能需要联系字节火山平台咨询其内容安全策略的具体规则。

请查阅相关文档:

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