feat: Add credential help to Assistant (no-changelog) (#10736)

This commit is contained in:
Mutasem Aldmour
2024-09-11 16:38:39 +02:00
committed by GitHub
parent 50459bacab
commit 2bc983ba32
11 changed files with 284 additions and 80 deletions

View File

@@ -33,7 +33,7 @@ async function onUserMessage(content: string, quickReplyType?: string, isFeedbac
} else {
await assistantStore.sendMessage({ text: content, quickReplyType });
}
const task = assistantStore.isSupportChatSessionInProgress ? 'support' : 'error';
const task = assistantStore.chatSessionTask;
const solutionCount = assistantStore.chatMessages.filter(
(msg) => msg.role === 'assistant' && !['text', 'event'].includes(msg.type),
).length;