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
8e529711
Unverified
Commit
8e529711
authored
Dec 27, 2023
by
Timothy Jaeryang Baek
Committed by
GitHub
Dec 27, 2023
Browse files
Merge pull request #301 from ollama-webui/stop-param-fix
fix: stop param to list
parents
42f860bb
e3413325
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/lib/components/chat/SettingsModal.svelte
src/lib/components/chat/SettingsModal.svelte
+3
-1
No files found.
src/lib/components/chat/SettingsModal.svelte
View file @
8e529711
...
@@ -614,6 +614,7 @@
...
@@ -614,6 +614,7 @@
options.top_p = settings.top_p ?? '';
options.top_p = settings.top_p ?? '';
options.num_ctx = settings.num_ctx ?? '';
options.num_ctx = settings.num_ctx ?? '';
options = { ...options, ...settings.options };
options = { ...options, ...settings.options };
options.stop = (settings?.options?.stop ?? []).join(',');
titleAutoGenerate = settings.titleAutoGenerate ?? true;
titleAutoGenerate = settings.titleAutoGenerate ?? true;
speechAutoSend = settings.speechAutoSend ?? false;
speechAutoSend = settings.speechAutoSend ?? false;
...
@@ -1051,7 +1052,8 @@
...
@@ -1051,7 +1052,8 @@
saveSettings({
saveSettings({
options: {
options: {
seed: (options.seed !== 0 ? options.seed : undefined) ?? undefined,
seed: (options.seed !== 0 ? options.seed : undefined) ?? undefined,
stop: options.stop !== '' ? options.stop : undefined,
stop:
options.stop !== '' ? options.stop.split(',').filter((e) => e) : undefined,
temperature: options.temperature !== '' ? options.temperature : undefined,
temperature: options.temperature !== '' ? options.temperature : undefined,
repeat_penalty:
repeat_penalty:
options.repeat_penalty !== '' ? options.repeat_penalty : undefined,
options.repeat_penalty !== '' ? options.repeat_penalty : undefined,
...
...
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