Browse Source

上传iOS的mcp工具过滤问题

weicu
liwei1dao 1 year ago
parent
commit
f2eac1284a
  1. 4
      local_plugins/chat_api/ios/chat_api/Sources/chat_api/MCPClient.swift

4
local_plugins/chat_api/ios/chat_api/Sources/chat_api/MCPClient.swift

@ -114,7 +114,7 @@ public class MCPSubClient {
}
private func processTools(_ toolList: [Tool]) {
tools = toolList
tools.removeAll()
toolMaps.removeAll()
for tool in toolList {
@ -128,7 +128,7 @@ public class MCPSubClient {
"description": tool.description ?? "",
"parameters": parameters
]
tools.append(tool)
toolMaps.append([
"type": "function",
"function": functionMap

Loading…
Cancel
Save