feat(ui): add forward_client_headers_to_llm_api toggle to general settings

This commit is contained in:
Shin 2026-02-21 18:20:40 +00:00
parent afdf70be73
commit 5f717843ba
2 changed files with 5 additions and 0 deletions

View file

@ -2149,6 +2149,10 @@ class ConfigGeneralSettings(LiteLLMPydanticObjectBase):
None,
description="If True, models and config are stored in and loaded from the database. Default is False.",
)
forward_client_headers_to_llm_api: Optional[bool] = Field(
None,
description="If True, forwards client headers (e.g. Authorization) to the LLM API. Required for Claude Code with Max subscription.",
)
class ConfigYAML(LiteLLMPydanticObjectBase):

View file

@ -11387,6 +11387,7 @@ async def get_config_list(
"mcp_internal_ip_ranges": {"type": "List"},
"mcp_trusted_proxy_ranges": {"type": "List"},
"always_include_stream_usage": {"type": "Boolean"},
"forward_client_headers_to_llm_api": {"type": "Boolean"},
}
return_val = []