mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-23 23:29:31 +01:00
refac
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user