mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
style(mcp): format server manager
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
1bcabdf483
commit
c5987f87fe
1 changed files with 2 additions and 6 deletions
|
|
@ -2084,9 +2084,7 @@ class MCPServerManager:
|
|||
extra_headers_dict: Optional[Dict[str, str]] = None
|
||||
if server.extra_headers and raw_headers:
|
||||
normalized = {
|
||||
str(k).lower(): v
|
||||
for k, v in raw_headers.items()
|
||||
if isinstance(k, str)
|
||||
str(k).lower(): v for k, v in raw_headers.items() if isinstance(k, str)
|
||||
}
|
||||
extra_headers_dict = {}
|
||||
for header in server.extra_headers:
|
||||
|
|
@ -2351,9 +2349,7 @@ class MCPServerManager:
|
|||
extra_headers = {}
|
||||
|
||||
normalized_raw_headers = {
|
||||
str(k).lower(): v
|
||||
for k, v in raw_headers.items()
|
||||
if isinstance(k, str)
|
||||
str(k).lower(): v for k, v in raw_headers.items() if isinstance(k, str)
|
||||
}
|
||||
for header in mcp_server.extra_headers:
|
||||
if not isinstance(header, str):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue