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
b7959633
"benchmark/git@developer.sourcefind.cn:change/sglang.git" did not exist on "39191c851532b8899b81c8dfac1bf558ee6be160"
Commit
b7959633
authored
Apr 20, 2024
by
Timothy J. Baek
Browse files
chore: format
parent
7a5a3c45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/lib/components/chat/Messages/RateComment.svelte
src/lib/components/chat/Messages/RateComment.svelte
+12
-12
No files found.
src/lib/components/chat/Messages/RateComment.svelte
View file @
b7959633
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
import { toast } from 'svelte-sonner';
import { toast } from 'svelte-sonner';
import { createEventDispatcher, onMount, getContext } from 'svelte';
import { createEventDispatcher, onMount, getContext } from 'svelte';
const i18n = getContext('i18n');
const i18n = getContext('i18n');
const dispatch = createEventDispatcher();
const dispatch = createEventDispatcher();
...
@@ -15,22 +15,22 @@
...
@@ -15,22 +15,22 @@
function loadReasons() {
function loadReasons() {
LIKE_REASONS = [
LIKE_REASONS = [
$i18n.t(
"
Accurate information
"
),
$i18n.t(
'
Accurate information
'
),
$i18n.t(
"
Followed instructions perfectly
"
),
$i18n.t(
'
Followed instructions perfectly
'
),
$i18n.t(
"
Showcased creativity
"
),
$i18n.t(
'
Showcased creativity
'
),
$i18n.t(
"
Positive attitude
"
),
$i18n.t(
'
Positive attitude
'
),
$i18n.t(
"
Attention to detail
"
),
$i18n.t(
'
Attention to detail
'
),
$i18n.t(
"
Thorough explanation
"
),
$i18n.t(
'
Thorough explanation
'
),
$i18n.t(
"
Other
"
)
$i18n.t(
'
Other
'
)
];
];
DISLIKE_REASONS = [
DISLIKE_REASONS = [
$i18n.t("Don't like the style"),
$i18n.t("Don't like the style"),
$i18n.t(
"
Not factually correct
"
),
$i18n.t(
'
Not factually correct
'
),
$i18n.t("Didn't fully follow instructions"),
$i18n.t("Didn't fully follow instructions"),
$i18n.t("Refused when it shouldn't have"),
$i18n.t("Refused when it shouldn't have"),
$i18n.t(
"
Being lazy
"
),
$i18n.t(
'
Being lazy
'
),
$i18n.t(
"
Other
"
)
$i18n.t(
'
Other
'
)
];
];
}
}
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
<textarea
<textarea
bind:value={comment}
bind:value={comment}
class="w-full text-sm px-1 py-2 bg-transparent outline-none resize-none rounded-xl"
class="w-full text-sm px-1 py-2 bg-transparent outline-none resize-none rounded-xl"
placeholder=
"
{$i18n.t('Feel free to add specific details')}
"
placeholder={$i18n.t('Feel free to add specific details')}
rows="2"
rows="2"
/>
/>
</div>
</div>
...
...
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