mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
fix(responses-api): use unique server_label per MCP server to prevent tool routing collisions
This commit is contained in:
parent
c0ebe03704
commit
1453f85105
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ export async function makeOpenAIResponsesRequest(
|
|||
|
||||
tools.push({
|
||||
type: "mcp",
|
||||
server_label: "litellm",
|
||||
server_label: serverName, // unique label per server so tool calls route correctly
|
||||
server_url: `${proxyBaseUrl}/mcp/${serverName}`,
|
||||
require_approval: "never",
|
||||
...(allowedTools.length > 0 ? { allowed_tools: allowedTools } : {}),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue