ASR + LLM routinely exceeds the default 10s axios timeout; match slow upload endpoints.
This commit is contained in:
@@ -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;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user