fix: chat restart (#2488)

This commit is contained in:
zxhlyh 2024-02-20 11:24:27 +08:00 committed by GitHub
parent 5ff6b1da07
commit eedbe1b770
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -146,8 +146,9 @@ export const useChat = (
}, [stopChat, handleResponsing])
const handleRestart = useCallback(() => {
handleStop()
connversationId.current = ''
taskIdRef.current = ''
handleStop()
const newChatList = config?.opening_statement
? [{
id: `${Date.now()}`,