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
78272aed
Commit
78272aed
authored
Jun 09, 2024
by
Timothy J. Baek
Browse files
fix
parent
3f7913b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
src/lib/components/chat/Chat.svelte
src/lib/components/chat/Chat.svelte
+9
-12
No files found.
src/lib/components/chat/Chat.svelte
View file @
78272aed
...
...
@@ -296,16 +296,6 @@
//////////////////////////
const
submitPrompt
=
async
(
userPrompt
,
_user
=
null
)
=>
{
//
Reset
chat
input
textarea
const
chatTextAreaElement
=
document
.
getElementById
(
'chat-textarea'
);
if
(
chatTextAreaElement
)
{
chatTextAreaElement
.
value
=
''
;
chatTextAreaElement
.
style
.
height
=
''
;
}
prompt
=
''
;
let
_responses
=
[];
console
.
log
(
'submitPrompt'
,
$
chatId
);
...
...
@@ -329,8 +319,15 @@
)
);
}
else
{
//
Reset
chat
message
textarea
height
document
.
getElementById
(
'chat-textarea'
).
style
.
height
=
''
;
//
Reset
chat
input
textarea
const
chatTextAreaElement
=
document
.
getElementById
(
'chat-textarea'
);
if
(
chatTextAreaElement
)
{
chatTextAreaElement
.
value
=
''
;
chatTextAreaElement
.
style
.
height
=
''
;
}
prompt
=
''
;
//
Create
user
message
let
userMessageId
=
uuidv4
();
...
...
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