mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix: type error
This commit is contained in:
parent
fc49c181bc
commit
4e827446d2
1 changed files with 3 additions and 3 deletions
|
|
@ -2641,12 +2641,12 @@ class MCPServerManager:
|
|||
server_name_from_prefix,
|
||||
) = split_server_prefix_from_name(tool_name)
|
||||
normalised_prefix = normalize_server_name(server_name_from_prefix)
|
||||
server = prefix_to_server.get(normalised_prefix)
|
||||
if server is not None and (
|
||||
matched_server = prefix_to_server.get(normalised_prefix)
|
||||
if matched_server is not None and (
|
||||
original_tool_name in self.tool_name_to_mcp_server_name_mapping
|
||||
or tool_name in self.tool_name_to_mcp_server_name_mapping
|
||||
):
|
||||
return server
|
||||
return matched_server
|
||||
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue