The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
[Feature] UI - Settings: toggle row for forward_llm_provider_auth_headers
Yuneng Jiang7eae18d15879
diff --git a/ui/litellm-dashboard/src/components/Settings/AdminSettings/UISettings/UISettings.tsx b/ui/litellm-dashboard/src/components/Settings/AdminSettings/UISettings/UISettings.tsxindex fb7c38449b0..9751ad435d5 100644--- a/ui/litellm-dashboard/src/components/Settings/AdminSettings/UISettings/UISettings.tsx+++ b/ui/litellm-dashboard/src/components/Settings/AdminSettings/UISettings/UISettings.tsx@@ -17,6 +17,8 @@ export default function UISettings() {const disableTeamAdminDeleteProperty = schema?.properties?.disable_team_admin_delete_team_user;const requireAuthForPublicAIHubProperty = schema?.properties?.require_auth_for_public_ai_hub;const forwardClientHeadersProperty = schema?.properties?.forward_client_headers_to_llm_api;+ const forwardLLMProviderAuthHeadersProperty =+ schema?.properties?.forward_llm_provider_auth_headers;const enableProjectsUIProperty = schema?.properties?.enable_projects_ui;const enabledPagesProperty = schema?.properties?.enabled_ui_pages_internal_users;const disableAgentsProperty = schema?.properties?.disable_agents_for_internal_users;@@ -84,6 +86,20 @@ export default function UISettings() {);};+ const handleToggleForwardLLMProviderAuthHeaders = (checked: boolean) => {+ updateSettings(+ { forward_llm_provider_auth_headers: checked },+ {+ onSuccess: () => {+ NotificationManager.success("UI settings updated successfully");+ },+ onError: (error) => {+ NotificationManager.fromBackend(error);+ },+ },+ );+ };+const handleToggleEnableProjectsUI = (checked: boolean) => {updateSettings({ enable_projects_ui: checked },@@ -284,6 +300,26 @@ export default function UISettings() {</Space></Space>+ <Space align="start" size="middle">+ <Switch+ checked={Boolean(values.forward_llm_provider_auth_headers)}+ disabled={isUpdating}+ loading={isUpdating}+ onChange={handleToggleForwardLLMProviderAuthHeaders}+ aria-label={+ forwardLLMProviderAuthHeadersProperty?.description ??+ "Forward LLM provider auth headers"+ }+ />+ <Space direction="vertical" size={4}>+ <Typography.Text strong>Forward LLM provider auth headers</Typography.Text>+ <Typography.Text type="secondary">+ {forwardLLMProviderAuthHeadersProperty?.description ??+ "If enabled, forwards provider auth headers (x-api-key, x-goog-api-key, api-key) to the LLM provider. Required for Claude Code BYOK."}+ </Typography.Text>+ </Space>+ </Space>+<Space align="start" size="middle"><Switchchecked={Boolean(values.enable_projects_ui)}