From eee2506adf075ffb6839396c875df53ece4c372d Mon Sep 17 00:00:00 2001 From: rameen Date: Tue, 25 Aug 2026 10:21:55 +0330 Subject: [PATCH] ASR + LLM routinely exceeds the default 10s axios timeout; match slow upload endpoints. --- frontend/src/lib/api/voice.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/api/voice.ts b/frontend/src/lib/api/voice.ts index f0e1eaf..84437fd 100644 --- a/frontend/src/lib/api/voice.ts +++ b/frontend/src/lib/api/voice.ts @@ -22,8 +22,11 @@ export const voiceApi = { payload: ExtractVoicePayload, signal?: AbortSignal, ): Promise<{ success: boolean; data: VoiceExtractionResult }> => { - // Forwarded so cancelling closes the connection; the controller turns that into an abort. - const response = await apiClient.post('/voice/extract', payload, { signal }); + // ASR + LLM routinely exceeds the default 10s axios timeout; match slow upload endpoints. + const response = await apiClient.post('/voice/extract', payload, { + signal, + timeout: 120_000, + }); return response.data; }, };