Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
7d45d276
Unverified
Commit
7d45d276
authored
Mar 26, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Mar 26, 2024
Browse files
Merge pull request #1311 from AndrewRyanChama/arc/openaitick
Add wait for tick before scrolling down in openai
parents
e5408995
d245b756
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/routes/(app)/+page.svelte
src/routes/(app)/+page.svelte
+4
-0
src/routes/(app)/c/[id]/+page.svelte
src/routes/(app)/c/[id]/+page.svelte
+4
-0
No files found.
src/routes/(app)/+page.svelte
View file @
7d45d276
...
@@ -518,6 +518,10 @@
...
@@ -518,6 +518,10 @@
const
sendPromptOpenAI
=
async
(
model
,
userPrompt
,
responseMessageId
,
_chatId
)
=>
{
const
sendPromptOpenAI
=
async
(
model
,
userPrompt
,
responseMessageId
,
_chatId
)
=>
{
const
responseMessage
=
history
.
messages
[
responseMessageId
];
const
responseMessage
=
history
.
messages
[
responseMessageId
];
//
Wait
until
history
/
message
have
been
updated
await
tick
();
scrollToBottom
();
scrollToBottom
();
const
docs
=
messages
const
docs
=
messages
...
...
src/routes/(app)/c/[id]/+page.svelte
View file @
7d45d276
...
@@ -533,6 +533,10 @@
...
@@ -533,6 +533,10 @@
const
sendPromptOpenAI
=
async
(
model
,
userPrompt
,
responseMessageId
,
_chatId
)
=>
{
const
sendPromptOpenAI
=
async
(
model
,
userPrompt
,
responseMessageId
,
_chatId
)
=>
{
const
responseMessage
=
history
.
messages
[
responseMessageId
];
const
responseMessage
=
history
.
messages
[
responseMessageId
];
//
Wait
until
history
/
message
have
been
updated
await
tick
();
scrollToBottom
();
scrollToBottom
();
const
docs
=
messages
const
docs
=
messages
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment