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
42b24cbb
Commit
42b24cbb
authored
Feb 13, 2024
by
Timothy J. Baek
Browse files
fix: keep alive default value
parent
3057bfe5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/lib/components/chat/Settings/Advanced.svelte
src/lib/components/chat/Settings/Advanced.svelte
+2
-2
No files found.
src/lib/components/chat/Settings/Advanced.svelte
View file @
42b24cbb
...
...
@@ -40,7 +40,7 @@
let settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
requestFormat = settings.requestFormat ?? '';
keepAlive = settings.keepAlive ??
''
;
keepAlive = settings.keepAlive ??
null
;
options.seed = settings.seed ?? 0;
options.temperature = settings.temperature ?? '';
...
...
@@ -141,7 +141,7 @@
num_ctx: options.num_ctx !== '' ? options.num_ctx : undefined,
num_predict: options.num_predict !== '' ? options.num_predict : undefined
},
keepAlive: keepAlive
!== ''
? keepAlive : undefined
keepAlive: keepAlive ? keepAlive : undefined
});
dispatch('save');
...
...
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