Modification of the STT structure timeout
This commit is contained in:
@@ -38,7 +38,7 @@ export class AiSttService {
|
||||
file.originalname || 'audio.wav',
|
||||
);
|
||||
|
||||
const timeoutMs = Number(this.config.get<string>('STT_TIMEOUT_MS') || 60000);
|
||||
const timeoutMs = Number(this.config.get<string>('STT_TIMEOUT_MS') || 180000);
|
||||
const headers: Record<string, string> = {};
|
||||
const token = this.config.get<string>('STT_INTERNAL_TOKEN')?.trim();
|
||||
if (token) headers['X-STT-Token'] = token;
|
||||
|
||||
Reference in New Issue
Block a user