mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-17 04:34:25 +00:00
style(proxy): format MCP static header changes
This commit is contained in:
parent
2a99531932
commit
0a4ad6e8c5
2 changed files with 2 additions and 5 deletions
|
|
@ -1347,9 +1347,7 @@ class MCPServerManager:
|
|||
) -> MCPServer:
|
||||
_mcp_info: MCPInfo = mcp_server.mcp_info or {}
|
||||
env_dict = _deserialize_json_dict(getattr(mcp_server, "env", None))
|
||||
static_headers_dict = _deserialize_json_dict(
|
||||
getattr(mcp_server, "static_headers", None)
|
||||
)
|
||||
static_headers_dict = _deserialize_json_dict(getattr(mcp_server, "static_headers", None))
|
||||
static_headers_dict = resolve_static_header_env_vars(
|
||||
static_headers_dict,
|
||||
allow_env_var_resolution=getattr(mcp_server, "submitted_by", None) is None,
|
||||
|
|
|
|||
|
|
@ -624,8 +624,7 @@ def resolve_static_header_env_vars(
|
|||
secret_value = litellm.get_secret(value)
|
||||
if secret_value is None:
|
||||
verbose_proxy_logger.warning(
|
||||
"MCP static header '%s' references missing env var '%s'. "
|
||||
"Leaving the header value unresolved.",
|
||||
"MCP static header '%s' references missing env var '%s'. Leaving the header value unresolved.",
|
||||
key,
|
||||
env_var_name,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue