Merge pull request 'Fix voice extract timeout for production ASR+LLM pipeline' (#69) from feature/ci-cd into master
Reviewed-on: http://host.docker.internal:3000/admin/dyolink/pulls/69 Reviewed-by: admin <admin@localhost>
This commit was merged in pull request #69.
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