From 87bcb50443746bd789813358052a2b92b9afab06 Mon Sep 17 00:00:00 2001 From: Artem Niehrieiev Date: Wed, 30 Jul 2025 09:02:44 +0000 Subject: [PATCH] refactor: comment out heartbeat response writing for improved stream handling --- .../use-cases/request-info-from-table-with-ai-v3.use.case.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/entities/ai/use-cases/request-info-from-table-with-ai-v3.use.case.ts b/backend/src/entities/ai/use-cases/request-info-from-table-with-ai-v3.use.case.ts index 22618d661..53e940973 100644 --- a/backend/src/entities/ai/use-cases/request-info-from-table-with-ai-v3.use.case.ts +++ b/backend/src/entities/ai/use-cases/request-info-from-table-with-ai-v3.use.case.ts @@ -1142,7 +1142,7 @@ Please provide a clear, concise, and conversational answer that directly address } if (typedChunk.type === 'response.created' || typedChunk.type === 'response.in_progress') { - response.write(`:heartbeat`); + // response.write(`:heartbeat`); } } @@ -1596,7 +1596,7 @@ Please provide a clear, concise, and conversational answer that directly address const updatedBuffer = this.processStreamTextChunk(typedChunk, response, buffer); if (typedChunk.type === 'response.created' || typedChunk.type === 'response.in_progress') { - response.write(`:heartbeat`); + // response.write(`:heartbeat`); if (typedChunk.type === 'response.created' && typedChunk.response?.id) { responseIdRef.id = typedChunk.response.id; }