mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 16:59:42 +00:00
fix: keep alive default value
This commit is contained in:
parent
3057bfe5a0
commit
42b24cbb68
@ -40,7 +40,7 @@
|
|||||||
let settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
|
let settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
|
||||||
|
|
||||||
requestFormat = settings.requestFormat ?? '';
|
requestFormat = settings.requestFormat ?? '';
|
||||||
keepAlive = settings.keepAlive ?? '';
|
keepAlive = settings.keepAlive ?? null;
|
||||||
|
|
||||||
options.seed = settings.seed ?? 0;
|
options.seed = settings.seed ?? 0;
|
||||||
options.temperature = settings.temperature ?? '';
|
options.temperature = settings.temperature ?? '';
|
||||||
@ -141,7 +141,7 @@
|
|||||||
num_ctx: options.num_ctx !== '' ? options.num_ctx : undefined,
|
num_ctx: options.num_ctx !== '' ? options.num_ctx : undefined,
|
||||||
num_predict: options.num_predict !== '' ? options.num_predict : undefined
|
num_predict: options.num_predict !== '' ? options.num_predict : undefined
|
||||||
},
|
},
|
||||||
keepAlive: keepAlive !== '' ? keepAlive : undefined
|
keepAlive: keepAlive ? keepAlive : undefined
|
||||||
});
|
});
|
||||||
|
|
||||||
dispatch('save');
|
dispatch('save');
|
||||||
|
Loading…
Reference in New Issue
Block a user