From 611a23da565fd8f328e122eac6b7f2f166b4a8c7 Mon Sep 17 00:00:00 2001 From: Aleksander Grygier Date: Thu, 1 Oct 2026 16:50:08 +0200 Subject: [PATCH] ui : add the Enable Discover Models setting The flag gates browsing and downloading HuggingFace GGUF models, so it is declared on the discover layer; the repo-tree lookup in the manager layer above reads it from here. Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash --- tools/ui/src/lib/constants/settings-keys.constants.ts | 1 + tools/ui/src/lib/constants/settings.constants.ts | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/tools/ui/src/lib/constants/settings-keys.constants.ts b/tools/ui/src/lib/constants/settings-keys.constants.ts index 0cbda109d2..d4ae8318c5 100644 --- a/tools/ui/src/lib/constants/settings-keys.constants.ts +++ b/tools/ui/src/lib/constants/settings-keys.constants.ts @@ -26,6 +26,7 @@ export const SETTINGS_KEYS = { DYNATEMP_EXPONENT: 'dynatemp_exponent', DYNATEMP_RANGE: 'dynatemp_range', ENABLE_CONTINUE_GENERATION: 'enableContinueGeneration', + ENABLE_DISCOVER_MODELS: 'enableDiscoverModels', EXCLUDE_REASONING_FROM_CONTEXT: 'excludeReasoningFromContext', FREQUENCY_PENALTY: 'frequency_penalty', FULL_HEIGHT_CODE_BLOCKS: 'fullHeightCodeBlocks', diff --git a/tools/ui/src/lib/constants/settings.constants.ts b/tools/ui/src/lib/constants/settings.constants.ts index f223a1202b..ac4d9b8585 100644 --- a/tools/ui/src/lib/constants/settings.constants.ts +++ b/tools/ui/src/lib/constants/settings.constants.ts @@ -128,6 +128,13 @@ export const SETTINGS_REGISTRY: SettingsSectionEntry[] = [ label: 'Enable "Continue" button', type: SettingsFieldType.CHECKBOX }, + { + defaultValue: true, + help: 'Show the Discover Models sidebar action to browse and download HuggingFace GGUF models. Only available in router mode.', + key: SETTINGS_KEYS.ENABLE_DISCOVER_MODELS, + label: 'Enable Discover Models', + type: SettingsFieldType.CHECKBOX + }, { defaultValue: true, help: 'Fetch model metadata (avatars, context length, chat template, file sizes) from the Hugging Face Hub. When off, the UI only shows what the server reports for /v1/models and hides the org avatars.',