运行中 · 正在统计本次回复 token... 21:15 The parameter `***.type` specified in the request ...
错误信息
运行中 · 正在统计本次回复 token...
21:15
The parameter `***.type` specified in the request are not valid: `The parameter `type` specified in the request are not valid: unknown tool type: namespace.`. Request id: 0217889597099525f505d6745d4b07a5efbd0dd2f16cfcbaa1828
AI 解决方案
🔍 报错分析
1. 🌐 错误翻译
原文:The parameter `***.type` specified in the request are not valid: `The parameter `type` specified in the request are not valid: unknown tool type: namespace.`. Request id: 0217889597099525f505d6745d4b07a5efbd0dd2f16cfcbaa1828
译文:请求中指定的参数`***.type`无效:`请求中指定的参数`type`无效:未知的工具类型:namespace`。请求ID:0217889597099525f505d6745d4b07a5efbd0dd2f16cfcbaa1828
2. 🎯 原因分析
type参数值设置为namespace,但该值不是系统支持的合法工具类型type字段的赋值错误namespace3. 💡 解决方案
检查API文档确认支持的合法
type参数值,替换为正确的类型。{
// 错误示例 - 使用了不支持的type值
"type": "namespace" // ❌ 无效的工具类型
// 正确示例 - 使用支持的type值(根据API文档调整)
"type": "function" // ✅ 合法工具类型(示例值,需参照实际API文档)
}