mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
Update litellm/responses/mcp/litellm_proxy_mcp_handler.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
dda31d0a5d
commit
acc74afc51
1 changed files with 3 additions and 3 deletions
|
|
@ -105,10 +105,10 @@ class LiteLLM_Proxy_MCP_Handler:
|
|||
# by rewriting them to the internal litellm_proxy format.
|
||||
m = _PROXY_MCP_PATH_RE.match(server_url)
|
||||
if m:
|
||||
rewritten = dict(tool)
|
||||
rewritten["server_url"] = (
|
||||
rewritten = {**tool, "server_url": (
|
||||
f"{LITELLM_PROXY_MCP_SERVER_URL_PREFIX}{m.group(1)}"
|
||||
)
|
||||
)}
|
||||
mcp_tools_with_litellm_proxy.append(rewritten)
|
||||
mcp_tools_with_litellm_proxy.append(rewritten)
|
||||
else:
|
||||
other_tools.append(tool)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue