Merge pull request #284 from wangerzi/feature/SupportZepMemoryAndAutoSummary

feature/SupportZepMemoryAndAutoSummary
This commit is contained in:
Henry Heng
2023-06-12 22:33:46 +01:00
committed by GitHub
8 changed files with 181 additions and 6 deletions
@@ -118,7 +118,8 @@ export const ChatMessage = ({ open, chatflowid, isDialog }) => {
setLoading(true)
setMessages((prevMessages) => [...prevMessages, { message: userInput, type: 'userMessage' }])
addChatMessage(userInput, 'userMessage')
// waiting for first chatmessage saved, the first chatmessage will be used in sendMessageAndGetPrediction
await addChatMessage(userInput, 'userMessage')
// Send user question and history to API
try {