From 753f4ba141d1561d33f33df17aa3d5cdba105a90 Mon Sep 17 00:00:00 2001 From: Alexandre Prado Date: Thu, 14 Nov 2024 02:25:15 -0300 Subject: [PATCH] fix: chatbots send message text buffer --- src/api/integrations/chatbot/dify/services/dify.service.ts | 2 +- .../chatbot/evolutionBot/services/evolutionBot.service.ts | 4 ++-- .../integrations/chatbot/flowise/services/flowise.service.ts | 4 ++-- .../integrations/chatbot/openai/services/openai.service.ts | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/api/integrations/chatbot/dify/services/dify.service.ts b/src/api/integrations/chatbot/dify/services/dify.service.ts index 9f7b6127..c60782d7 100644 --- a/src/api/integrations/chatbot/dify/services/dify.service.ts +++ b/src/api/integrations/chatbot/dify/services/dify.service.ts @@ -428,8 +428,8 @@ export class DifyService { }, false, ); - textBuffer = ''; } + textBuffer = ''; } if (mediaType === 'audio') { diff --git a/src/api/integrations/chatbot/evolutionBot/services/evolutionBot.service.ts b/src/api/integrations/chatbot/evolutionBot/services/evolutionBot.service.ts index 3b8a8a4a..5275f9e1 100644 --- a/src/api/integrations/chatbot/evolutionBot/services/evolutionBot.service.ts +++ b/src/api/integrations/chatbot/evolutionBot/services/evolutionBot.service.ts @@ -190,8 +190,8 @@ export class EvolutionBotService { }, false, ); - textBuffer = ''; } + textBuffer = ''; } if (mediaType === 'audio') { @@ -274,8 +274,8 @@ export class EvolutionBotService { }, false, ); - textBuffer = ''; } + textBuffer = ''; } sendTelemetry('/message/sendText'); diff --git a/src/api/integrations/chatbot/flowise/services/flowise.service.ts b/src/api/integrations/chatbot/flowise/services/flowise.service.ts index d1ab4e2f..6e4cdbd5 100644 --- a/src/api/integrations/chatbot/flowise/services/flowise.service.ts +++ b/src/api/integrations/chatbot/flowise/services/flowise.service.ts @@ -189,8 +189,8 @@ export class FlowiseService { }, false, ); - textBuffer = ''; } + textBuffer = ''; } if (mediaType === 'audio') { @@ -273,8 +273,8 @@ export class FlowiseService { }, false, ); - textBuffer = ''; } + textBuffer = ''; } sendTelemetry('/message/sendText'); diff --git a/src/api/integrations/chatbot/openai/services/openai.service.ts b/src/api/integrations/chatbot/openai/services/openai.service.ts index 440e3941..16f4ce80 100644 --- a/src/api/integrations/chatbot/openai/services/openai.service.ts +++ b/src/api/integrations/chatbot/openai/services/openai.service.ts @@ -234,8 +234,8 @@ export class OpenaiService { }, false, ); - textBuffer = ''; } + textBuffer = ''; } if (mediaType === 'audio') { @@ -318,8 +318,8 @@ export class OpenaiService { }, false, ); - textBuffer = ''; } + textBuffer = ''; } sendTelemetry('/message/sendText');