continue 下模型无法使用mcp (调用工具输出纯文本
遇到GLM-4.7 flash模型调用mcp时经常输出纯文本类似
<tool_call> xxxxx</tool_call>
# 或者
Tool call: {
"id": "x x x",
"type": "function",
"function": {
"name": "run_terminal_command",
"arguments": "{\"command\": \"node xxx.js\"}"
}
}
需要给模型显式添加以下配置
capabilities:
- tool_use

浙公网安备 33010602011771号