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
690c2521
Unverified
Commit
690c2521
authored
Jun 10, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jun 10, 2024
Browse files
Merge pull request #2999 from open-webui/fix
fix
parents
5dc9b939
b72243c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
src/lib/components/chat/Messages/RateComment.svelte
src/lib/components/chat/Messages/RateComment.svelte
+2
-2
src/lib/components/chat/Messages/ResponseMessage.svelte
src/lib/components/chat/Messages/ResponseMessage.svelte
+5
-4
No files found.
src/lib/components/chat/Messages/RateComment.svelte
View file @
690c2521
...
@@ -46,8 +46,8 @@
...
@@ -46,8 +46,8 @@
}
}
onMount(() => {
onMount(() => {
selectedReason = message.annotation.reason;
selectedReason = message
?
.annotation
?
.reason
?? ''
;
comment = message.annotation.comment;
comment = message
?
.annotation
?
.comment;
loadReasons();
loadReasons();
});
});
...
...
src/lib/components/chat/Messages/ResponseMessage.svelte
View file @
690c2521
...
@@ -876,8 +876,8 @@
...
@@ -876,8 +876,8 @@
<button
<button
class="{isLastMessage
class="{isLastMessage
? 'visible'
? 'visible'
: 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg {message
: 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg {
(
message
?.annotation?.rating === 1
?.annotation?.rating
?? null)
=== 1
? 'bg-gray-100 dark:bg-gray-800'
? 'bg-gray-100 dark:bg-gray-800'
: ''} dark:hover:text-white hover:text-black transition"
: ''} dark:hover:text-white hover:text-black transition"
on:click={() => {
on:click={() => {
...
@@ -911,8 +911,8 @@
...
@@ -911,8 +911,8 @@
<button
<button
class="{isLastMessage
class="{isLastMessage
? 'visible'
? 'visible'
: 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg {message
: 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg {
(
message
?.annotation?.rating === -1
?.annotation?.rating
?? null)
=== -1
? 'bg-gray-100 dark:bg-gray-800'
? 'bg-gray-100 dark:bg-gray-800'
: ''} dark:hover:text-white hover:text-black transition"
: ''} dark:hover:text-white hover:text-black transition"
on:click={() => {
on:click={() => {
...
@@ -982,6 +982,7 @@
...
@@ -982,6 +982,7 @@
? 'visible'
? 'visible'
: 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition regenerate-response-button"
: 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition regenerate-response-button"
on:click={() => {
on:click={() => {
showRateComment = false;
regenerateResponse(message);
regenerateResponse(message);
}}
}}
>
>
...
...
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