ASR + LLM routinely exceeds the default 10s axios timeout; match slow upload endpoints.

This commit is contained in:
2026-08-25 10:21:55 +03:30
parent 5ac3a4a708
commit eee2506adf

View File

@@ -22,8 +22,11 @@ export const voiceApi = {
payload: ExtractVoicePayload, payload: ExtractVoicePayload,
signal?: AbortSignal, signal?: AbortSignal,
): Promise<{ success: boolean; data: VoiceExtractionResult }> => { ): Promise<{ success: boolean; data: VoiceExtractionResult }> => {
// Forwarded so cancelling closes the connection; the controller turns that into an abort. // ASR + LLM routinely exceeds the default 10s axios timeout; match slow upload endpoints.
const response = await apiClient.post('/voice/extract', payload, { signal }); const response = await apiClient.post('/voice/extract', payload, {
signal,
timeout: 120_000,
});
return response.data; return response.data;
}, },
}; };