Fix voice extract timeout for production ASR+LLM pipeline #69
@@ -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;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user