Procházet zdrojové kódy

fix: chat restart (#2488)

tags/0.5.7
zxhlyh před 1 rokem
rodič
revize
eedbe1b770
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2
    1
      web/app/components/base/chat/chat/hooks.ts

+ 2
- 1
web/app/components/base/chat/chat/hooks.ts Zobrazit soubor

@@ -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()}`,

Načítá se…
Zrušit
Uložit