This commit is contained in:
Timothy Jaeryang Baek 2025-07-07 19:58:10 +04:00
parent 8cd7de3740
commit b3001f95f6

View file

@ -77,6 +77,9 @@
messages = messages;
}
await tick();
scrollToBottom();
const [res, controller] = await chatCompletion(
localStorage.token,
{
@ -96,7 +99,7 @@
);
await tick();
const textareaElement = document.getElementById(`assistant-${messages.length - 1}-textarea`);
scrollToBottom();
if (res && res.ok) {
const reader = res.body