mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-23 03:19:41 +00:00
仅保留mcp2.x行为
This commit is contained in:
parent
ef2fcdbcb1
commit
01289b8fd4
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ class ServerMCPClient:
|
|||
"function": {
|
||||
"name": name,
|
||||
"description": tool.description,
|
||||
"parameters": getattr(tool, "input_schema", None) or getattr(tool, "inputSchema", {}),
|
||||
"parameters": tool.input_schema,
|
||||
},
|
||||
}
|
||||
for name, tool in self.tools_dict.items()
|
||||
|
|
|
|||
Loading…
Reference in a new issue