()
| 105 | }, [messages, isLoading, parseMessages]); |
| 106 | |
| 107 | const scrollTextArea = () => { |
| 108 | const textarea = textareaRef.current; |
| 109 | |
| 110 | if (textarea) { |
| 111 | textarea.scrollTop = textarea.scrollHeight; |
| 112 | } |
| 113 | }; |
| 114 | |
| 115 | const abort = () => { |
| 116 | stop(); |