From 53bd5e6bf2a1667fd0f31c4e9521ab2a53d8d961 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Tue, 29 Jul 2025 06:19:21 +0000 Subject: [PATCH] fix: remove broken Hugging Face documentation link - Add huggingface to excluded providers list in docs mapping - Prevents 404 error when clicking documentation link in provider settings - Documentation link will be hidden until proper docs page is created Fixes #6334 --- webview-ui/src/components/settings/ApiOptions.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webview-ui/src/components/settings/ApiOptions.tsx b/webview-ui/src/components/settings/ApiOptions.tsx index 38d2ceebd3..fd5854f7ab 100644 --- a/webview-ui/src/components/settings/ApiOptions.tsx +++ b/webview-ui/src/components/settings/ApiOptions.tsx @@ -326,6 +326,13 @@ const ApiOptions = ({ return undefined } + // Providers that don't have documentation pages yet + const excludedProviders = ["huggingface"] + + if (excludedProviders.includes(selectedProvider)) { + return undefined + } + // Get the URL slug - use custom mapping if available, otherwise use the provider key. const slugs: Record = { "openai-native": "openai",