- Trouble accessing Ollama?
-
- Click here for help.
-
+
+
+
Notification
+
+
+
@@ -213,7 +265,23 @@
class=" px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-gray-100 transition rounded"
on:click={() => {
saveSettings({
- system: system !== '' ? system : undefined
+ system: system !== '' ? system : undefined,
+ options: {
+ seed: (options.seed !== 0 ? options.seed : undefined) ?? undefined,
+ stop: options.stop !== '' ? options.stop.split(',').filter((e) => e) : undefined,
+ temperature: options.temperature !== '' ? options.temperature : undefined,
+ repeat_penalty: options.repeat_penalty !== '' ? options.repeat_penalty : undefined,
+ repeat_last_n: options.repeat_last_n !== '' ? options.repeat_last_n : undefined,
+ mirostat: options.mirostat !== '' ? options.mirostat : undefined,
+ mirostat_eta: options.mirostat_eta !== '' ? options.mirostat_eta : undefined,
+ mirostat_tau: options.mirostat_tau !== '' ? options.mirostat_tau : undefined,
+ top_k: options.top_k !== '' ? options.top_k : undefined,
+ top_p: options.top_p !== '' ? options.top_p : undefined,
+ tfs_z: options.tfs_z !== '' ? options.tfs_z : undefined,
+ num_ctx: options.num_ctx !== '' ? options.num_ctx : undefined,
+ num_predict: options.num_predict !== '' ? options.num_predict : undefined
+ },
+ keepAlive: keepAlive ? (isNaN(keepAlive) ? keepAlive : parseInt(keepAlive)) : undefined
});
dispatch('save');
}}
diff --git a/src/lib/components/chat/SettingsModal.svelte b/src/lib/components/chat/SettingsModal.svelte
index 3e5cf0669..179d38beb 100644
--- a/src/lib/components/chat/SettingsModal.svelte
+++ b/src/lib/components/chat/SettingsModal.svelte
@@ -11,10 +11,10 @@
import About from './Settings/About.svelte';
import Models from './Settings/Models.svelte';
import General from './Settings/General.svelte';
- import External from './Settings/External.svelte';
import Interface from './Settings/Interface.svelte';
import Audio from './Settings/Audio.svelte';
import Chats from './Settings/Chats.svelte';
+ import Connection from './Settings/Connection.svelte';
export let show = false;
@@ -102,31 +102,31 @@
General
-
-
{#if $user?.role === 'admin'}
+
+