feat: новая функция

This commit is contained in:
2025-10-16 18:44:30 +03:00
parent e0300480e1
commit 927d174f66
33 changed files with 1494 additions and 700 deletions

View File

@@ -94,7 +94,7 @@ async function processMessage(messageData) {
// 4. Определяем нужно ли генерировать AI ответ
const shouldGenerateAi = adminLogicService.shouldGenerateAiReply({
senderType: isAdmin ? 'admin' : 'user',
senderType: isAdmin ? 'editor' : 'user',
userId: userId,
recipientId: recipientId || userId,
channel: channel
@@ -161,7 +161,7 @@ async function processMessage(messageData) {
[
userId,
conversationId,
isAdmin ? 'admin' : 'user',
isAdmin ? 'editor' : 'user',
content,
channel,
'user',