fix: enforce asr client timeout

This commit is contained in:
2026-05-19 09:27:47 +08:00
parent e5652c463c
commit 9a4268281e
2 changed files with 15 additions and 6 deletions

View File

@@ -1238,6 +1238,18 @@ ProductRefStateItem {
<p><strong>影响:</strong>只改变工作台视觉模式,不改变素材下载、音频解析、抽帧、主体模板、产品素材池、首尾帧或模型链路;<code>web/app/page.tsx</code> 同步移除旧全局浮动主题按钮,避免右下角出现第二套不相关的主题入口。后续新增图片/视频板块仍应复用同一套媒体悬停放大和删除逻辑。</p>
</div>
</article>
<article class="change">
<header>
<h3>2026-05-19 · ASR 客户端级超时硬化</h3>
<span class="tag violet">API</span>
<span class="tag cyan">Ops</span>
</header>
<div class="body">
<p><strong>问题:</strong>云端全流程中远端 <code>whisper-1</code> 转录可能长期停在“转录中”,页面没有 transcript也不会进入后续分镜。</p>
<p><strong>改动:</strong><code>api/main.py</code> 的远端 ASR、Gemini 音频转写兜底和音频画像调用改为 <code>llm().with_options(timeout=ASR_TIMEOUT_SECONDS)</code> 后再发起请求,避免只在调用参数里传 <code>timeout</code> 时被兼容网关或 SDK 路径忽略。</p>
<p><strong>影响:</strong>远端 ASR 超时后应进入本机 ASR 或多模态音频兜底,并最终给出成功 transcript 或明确失败状态;不会无限占用“音频文案”步骤。</p>
</div>
</article>
<article class="change">
<header>
<h3>2026-05-19 · 云端 TikTok cookies 文件挂载</h3>