From ea257636ee82bd8b7f1af2087e8f579ec1356c63 Mon Sep 17 00:00:00 2001 From: Anthony Cucci <47187712+AnthonyCucci@users.noreply.github.com> Date: Wed, 29 Nov 2023 22:02:51 -0500 Subject: [PATCH] Update SettingsModal.svelte Added context length --- src/lib/components/chat/SettingsModal.svelte | 24 ++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/SettingsModal.svelte b/src/lib/components/chat/SettingsModal.svelte index e6f75c7f2..c070659cd 100644 --- a/src/lib/components/chat/SettingsModal.svelte +++ b/src/lib/components/chat/SettingsModal.svelte @@ -30,6 +30,7 @@ let repeat_penalty = 1.1; let top_k = 40; let top_p = 0.9; + let num_ctx = 2048; // Models let modelTag = ''; @@ -231,6 +232,7 @@ repeat_penalty = settings.repeat_penalty ?? 1.1; top_k = settings.top_k ?? 40; top_p = settings.top_p ?? 0.9; + num_ctx = settings.num_ctx ?? 2048; titleAutoGenerate = settings.titleAutoGenerate ?? true; speechAutoSend = settings.speechAutoSend ?? false; @@ -732,8 +734,24 @@ class="w-full h-2 rounded-lg appearance-none cursor-pointer dark:bg-gray-700" /> +
+ + +
-
+ {:else if selectedTab === 'models'}