mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-02 22:17:14 +00:00
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.
This commit is contained in:
@@ -104,14 +104,10 @@ export function FriendlyUISection({
|
|||||||
// State for collapsible sections
|
// State for collapsible sections
|
||||||
const [showAllEnvVars, setShowAllEnvVars] = useState(false);
|
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([
|
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_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"
|
// Get non-managed env vars for display in "Additional Variables"
|
||||||
|
|||||||
Reference in New Issue
Block a user