Skip to content

Commit 40640b7

Browse files
committed
revert timeout for _waitForGeneration
1 parent 11453e9 commit 40640b7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

agents/src/voice/agent_activity.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -848,14 +848,7 @@ export class AgentActivity implements RecognitionHooks {
848848
const speechHandle = heapItem[2];
849849
this._currentSpeech = speechHandle;
850850
speechHandle._authorizeGeneration();
851-
try {
852-
await Promise.race([
853-
speechHandle._waitForGeneration(),
854-
new Promise((_, reject) => setTimeout(() => reject('timeout after 30 seconds'), 30000)),
855-
]);
856-
} catch (err) {
857-
console.error('wait for generation failed', err, speechHandle);
858-
}
851+
await speechHandle._waitForGeneration();
859852
this._currentSpeech = undefined;
860853
}
861854

0 commit comments

Comments
 (0)