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