From f41d361fe547c0201b4d49c542391b4e5d96b93e Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Sat, 20 Dec 2025 23:47:14 -0500 Subject: [PATCH] fix(openrouter): show all env vars except API key in Additional Variables Only hide ANTHROPIC_AUTH_TOKEN (has dedicated input). Show all other env vars (BASE_URL, MODEL, tier models, API_KEY, etc.) in the "Additional Variables" section for full visibility. --- ui/src/components/profiles/editor/friendly-ui-section.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ui/src/components/profiles/editor/friendly-ui-section.tsx b/ui/src/components/profiles/editor/friendly-ui-section.tsx index 00312d0b..f193290c 100644 --- a/ui/src/components/profiles/editor/friendly-ui-section.tsx +++ b/ui/src/components/profiles/editor/friendly-ui-section.tsx @@ -104,14 +104,10 @@ export function FriendlyUISection({ // State for collapsible sections const [showAllEnvVars, setShowAllEnvVars] = useState(false); - // For OpenRouter: keys managed by dedicated UI sections + // For OpenRouter: only hide API key (has dedicated input above) + // Show all other env vars in "Additional Variables" section const openRouterManagedKeys = new Set([ - 'ANTHROPIC_MODEL', - 'ANTHROPIC_DEFAULT_OPUS_MODEL', - 'ANTHROPIC_DEFAULT_SONNET_MODEL', - 'ANTHROPIC_DEFAULT_HAIKU_MODEL', 'ANTHROPIC_AUTH_TOKEN', // Managed by API Key section - 'ANTHROPIC_BASE_URL', // Base URL shown in profile header ]); // Get non-managed env vars for display in "Additional Variables"