refac
This commit is contained in:
1 parent
8cd7de3740
commit
b3001f95f6
1 file changed
+4
-1
@@ -77,6 +77,9 @@
|
|||||||
messages = messages;
|
messages = messages;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await tick();
|
||||||
|
scrollToBottom();
|
||||||
|
|
||||||
const [res, controller] = await chatCompletion(
|
const [res, controller] = await chatCompletion(
|
||||||
localStorage.token,
|
localStorage.token,
|
||||||
{
|
{
|
||||||
@@ -96,7 +99,7 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
await tick();
|
await tick();
|
||||||
const textareaElement = document.getElementById(`assistant-${messages.length - 1}-textarea`);
|
scrollToBottom();
|
||||||
|
|
||||||
if (res && res.ok) {
|
if (res && res.ok) {
|
||||||
const reader = res.body
|
const reader = res.body
|
||||||
|
|||||||
Reference in new issue
Block a user