From b15bf0dc7042609f9e4e22426a24aaadb4c7f08e Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 2 Apr 2025 19:17:26 -0700 Subject: [PATCH] refac --- .../Settings/Advanced/AdvancedParams.svelte | 332 +++++++++--------- 1 file changed, 166 insertions(+), 166 deletions(-) diff --git a/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte b/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte index 67b1f4dc1..80823f830 100644 --- a/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte +++ b/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte @@ -786,62 +786,6 @@ {/if} -
- -
-
- {$i18n.t('Repeat Penalty (Ollama)')} -
- - -
-
- - {#if (params?.repeat_penalty ?? null) !== null} -
-
- -
-
- -
-
- {/if} -
-
+
+ +
+
+ {$i18n.t('Tokens To Keep On Context Refresh (num_keep)')} +
+ + +
+
+ + {#if (params?.num_keep ?? null) !== null} +
+
+ +
+
+ +
+
+ {/if} +
+ +
+ +
+
+ {$i18n.t('Max Tokens (num_predict)')} +
+ + +
+
+ + {#if (params?.max_tokens ?? null) !== null} +
+
+ +
+
+ +
+
+ {/if} +
+ +
+ +
+
+ {$i18n.t('Repeat Penalty (Ollama)')} +
+ + +
+
+ + {#if (params?.repeat_penalty ?? null) !== null} +
+
+ +
+
+ +
+
+ {/if} +
+
-
- -
-
- {$i18n.t('Tokens To Keep On Context Refresh (num_keep)')} -
- - -
-
- - {#if (params?.num_keep ?? null) !== null} -
-
- -
-
- -
-
- {/if} -
- -
- -
-
- {$i18n.t('Max Tokens (num_predict)')} -
- - -
-
- - {#if (params?.max_tokens ?? null) !== null} -
-
- -
-
- -
-
- {/if} -
- {#if admin}