mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
8cd7de3740
commit
b3001f95f6
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue