yt-chat-components 0.9.8 → 0.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -160,7 +160,7 @@ export default function ChatWindow({
|
|
|
160
160
|
} else if (event == 'token') {
|
|
161
161
|
setNowAIContent((prevState) => prevState + data['chunk']);
|
|
162
162
|
if (lastMessage.current) lastMessage.current.scrollIntoView({ behavior: 'smooth' });
|
|
163
|
-
} else if (
|
|
163
|
+
} else if (event == 'end') {
|
|
164
164
|
const res = {
|
|
165
165
|
data: data['result'],
|
|
166
166
|
};
|