]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
fix: preserved zero values in chat settings inputs and textareas by switching to...
authorPascal <redacted>
Mon, 29 Sep 2025 07:08:41 +0000 (09:08 +0200)
committerGitHub <redacted>
Mon, 29 Sep 2025 07:08:41 +0000 (09:08 +0200)
tools/server/public/index.html.gz
tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettingsFields.svelte

index 15c18e2d4970a7b21c96a29e313de252d72369d9..c02b55f5f27a52d7cd4aee8ca5349dd8a345f66a 100644 (file)
Binary files a/tools/server/public/index.html.gz and b/tools/server/public/index.html.gz differ
index 808e7d37caae6692a58c0aa20287d30de61dda3b..7e11b2a92fe88a9930ff6d7c4e43ea2bb9c4ec37 100644 (file)
@@ -30,9 +30,9 @@
 
                        <Input
                                id={field.key}
-                               value={String(localConfig[field.key] || '')}
+                               value={String(localConfig[field.key] ?? '')}
                                onchange={(e) => onConfigChange(field.key, e.currentTarget.value)}
-                               placeholder={`Default: ${SETTING_CONFIG_DEFAULT[field.key] || 'none'}`}
+                               placeholder={`Default: ${SETTING_CONFIG_DEFAULT[field.key] ?? 'none'}`}
                                class={isMobile ? 'w-full' : 'max-w-md'}
                        />
                        {#if field.help || SETTING_CONFIG_INFO[field.key]}
@@ -47,9 +47,9 @@
 
                        <Textarea
                                id={field.key}
-                               value={String(localConfig[field.key] || '')}
+                               value={String(localConfig[field.key] ?? '')}
                                onchange={(e) => onConfigChange(field.key, e.currentTarget.value)}
-                               placeholder={`Default: ${SETTING_CONFIG_DEFAULT[field.key] || 'none'}`}
+                               placeholder={`Default: ${SETTING_CONFIG_DEFAULT[field.key] ?? 'none'}`}
                                class={isMobile ? 'min-h-[100px] w-full' : 'min-h-[100px] max-w-2xl'}
                        />
                        {#if field.help || SETTING_CONFIG_INFO[field.key]}