#6521 [openrouter] https://openrouter.ai/api/v1 error:ChatCompletion(id='gen-1786271834-PCREDs7QyYXdkb8BkSUE', choices=[Choice

103.81.**3 Posted at: 18 hours ago

[openrouter] https://openrouter.ai/api/v1 error:ChatCompletion(id='gen-1786271834-PCREDs7QyYXdkb8BkSUE', choices=[Choice(finish_reason='error', index=0, logprobs=None, message=ChatCompletionMessage(content=None, refusal=None, role='assistant', annotations=None, audio=None, function_call=None, tool_calls=None, reasoning="Translating Vietnamese Subtitles\n\nI'm currently focused on the core task: translating the Vietnamese SRT subtitles into Simplified Chinese. This involves accurately converting the dialogue while preserving the original timing and structure.\n\nFocusing on SRT Translation\n\nI'm concentrating on the precise translation of the Vietnamese SRT content into Simplified Chinese. My current efforts are geared towards ensuring a natural, spoken register and an aggressive compression of phrases to meet TTS pacing requirements, all while strictly adhering to the 1-to-1 block mapping and formatting rules.\n\nAdapting Subtitles for Dubbing\n\nI'm focusing on condensing
......
ssing the Vietnamese SRT content into extremely concise Simplified Chinese. My immediate task is to ensure each translated block precisely mirrors its source in content and format, maintaining a natural spoken register and adhering to the aggressive TTS pacing requirements.\n\nTranslating Vietnamese Subtitles\n\nI'm currently focused on the core task: translating the Vietnamese SRT subtitles into Simplified Chinese. This involves accurately converting the dialogue while preserving the original timing and structure.\n\n", 'format': 'google-gemini-v1', 'index': 0}]), native_finish_reason=None, error={'code': 504, 'message': 'Upstream idle timeout exceeded', 'metadata': {'error_type': 'timeout'}})], created=1786271834, model='google/gemini-2.5-pro', object='chat.completion', service_tier=None, system_fingerprint=None, usage=CompletionUsage(completion_tokens=1086, prompt_tokens=2060, total_tokens=3146, completion_tokens_details=CompletionTokensDetails(accepted_prediction_tokens=None, audio_tokens=0, reasoning_tokens=0, rejected_prediction_tokens=None, image_tokens=0), prompt_tokens_details=PromptTokensDetails(audio_tokens=0, cached_tokens=0, cache_write_tokens=0, video_tokens=0), cost=0, is_byok=False, cost_details={'upstream_inference_cost': 0.013435, 'upstream_inference_prompt_cost': 0.002575, 'upstream_inference_completions_cost': 0.01086}), provider='Google')

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/video/tiktok-1786200361005.mp4,
输出结果保存到文件夹: D:/video/_video_out/tiktok-1786200361005-mp4,
临时文件夹: D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/19144/2609330901
未选 清理已存在
已启用CUDA加速
未选 降噪
已选 删除所有标点符号
语音识别:ElevenLabs.io, model_name: , 发音语言: 越南语, 断句方式:LLM重新断句
翻译渠道:OpenRouter,原始语言:越南语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件
代理地址:


=
system:Windows-10-10.0.22631-SP0
version:v4.08
frozen:True
language:zh
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.07

1 Replies

这是 OpenRouter 上游模型出于“思考模式”耗时过长,触发了 504 Upstream idle timeout exceeded 超时。你选择的 google/gemini-2.5-pro 属于推理模型,在批量翻译长字幕时会先输出大量 thinking 内容,长时间不返回最终翻译结果,最终被上游判定为空闲超时。

解决方案:

  1. 更换翻译模型:进入 菜单-翻译设置-OpenRouter 设置面板,将模型改为更快、非推理优先的模型,例如 google/gemini-2.5-flash 或 DeepSeek 系列,避免 Gemini Pro 级推理模型长时间思考导致超时。
  2. 调小每批字幕行数:进入 菜单-工具-高级选项-字幕翻译调整,将“AI翻译渠道每批字幕行数”调小(例如 10~20 行),减少单次请求的输入量和模型推理耗时。
  3. 取消勾选“发送完整字幕”:在主界面翻译渠道处关闭“发送完整字幕”,改为单行/小批量提交模式,降低单次请求复杂度和超时概率。
  4. 确认模型可用性与余额:到 OpenRouter 控制台检查该模型额度、状态是否正常,也可尝试切换其他可用上游模型。

请查阅相关文档:

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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource