Browse Source

Merge branch 'new_dev' of github.com:deepcloud2048/deep_voice into new_dev

weicu
lxm 1 year ago
parent
commit
b7f188fc07
  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