Przeglądaj źródła

fix: chat restart (#2488)

tags/0.5.7
zxhlyh 1 rok temu
rodzic
commit
eedbe1b770
No account linked to committer's email address
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2
    1
      web/app/components/base/chat/chat/hooks.ts

+ 2
- 1
web/app/components/base/chat/chat/hooks.ts Wyświetl plik

}, [stopChat, handleResponsing]) }, [stopChat, handleResponsing])


const handleRestart = useCallback(() => { const handleRestart = useCallback(() => {
handleStop()
connversationId.current = '' connversationId.current = ''
taskIdRef.current = ''
handleStop()
const newChatList = config?.opening_statement const newChatList = config?.opening_statement
? [{ ? [{
id: `${Date.now()}`, id: `${Date.now()}`,

Ładowanie…
Anuluj
Zapisz