Commit 42b24cbb authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: keep alive default value

parent 3057bfe5
......@@ -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');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment