chore(ai-avatar): generateSmartCover 接口超时 60s → 120s #1861

Merged
auto-approve-bot merged 1 commits from chore/smart-cover-timeout-120s into develop 2026-09-11 15:58:20 +08:00
+3 -3
View File
@@ -66,7 +66,8 @@ export const generateSmartCover = async (
const response = await apiClient.post<{ cover_url: string; status: string; message: string }>(
"/ai-avatar/render/smart-cover",
{ video_url, max_frames },
{ timeout: 60000 },
// smart-cover 链路:下载视频+抽帧+drawtext 加标题+上传 OSS,需要较长时间,120s 超时
{ timeout: 120000 },
)
return response.data
}
@@ -85,8 +86,7 @@ export const submitRender = async (data: {
}
export const getRenderJob = async (jobId: string): Promise<RenderJob> => {
// 渲染任务走多步 ffmpeg 合成,可能耗时较久,轮询超时设 60s
const response = await apiClient.get<RenderJob>(`/ai-avatar/render/${jobId}`, { timeout: 60000 })
const response = await apiClient.get<RenderJob>(`/ai-avatar/render/${jobId}`)
return response.data
}