mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
Update litellm/proxy/_experimental/mcp_server/semantic_tool_filter.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
76d8d29951
commit
c34337157e
1 changed files with 2 additions and 2 deletions
|
|
@ -291,8 +291,8 @@ class SemanticMCPToolFilter:
|
|||
# A unique-ID segment contains no separator at all (it's a
|
||||
# short hex or alphanumeric string). Reject remainders that
|
||||
# contain either underscore or dash, since both are valid
|
||||
# separators in MCP tool names regardless of the configured
|
||||
# MCP_TOOL_PREFIX_SEPARATOR.
|
||||
if remainder and remainder[0] in ("_", "-"):
|
||||
rest = remainder[1:]
|
||||
if "_" not in rest and "-" not in rest:
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue