Fix voice extract timeout for production ASR+LLM pipeline #69

Merged
admin merged 1 commits from feature/ci-cd into master 2026-08-25 14:42:25 +03:30

View File

@@ -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;
},
};