", "error": { "type": "invalid_request_error", "message": "tools.3.custom.input_...

2025年11月26日 09:55 状态: processing

🚨 错误信息

{ "type": "error", "error": { "type": "invalid_request_error", "message": "tools.3.custom.input_examples: Extra inputs are not permitted" }, "request_id": "req_011CVVfGtNYFrPQpXFdT9w6G" }

🤖 AI解决方案

报错分析

1. 错误翻译

原文:tools.3.custom.input_examples: Extra inputs are not permitted
译文:工具配置中的第4个自定义工具的input_examples字段:不允许额外的输入参数

2. 原因分析

这是一个API请求验证错误,具体原因是在DMXAPI的工具配置中:
  • tools数组的第4个元素(索引为3)的custom配置中
  • input_examples字段包含了不被允许的额外输入参数
  • 系统检测到传递了预期之外的字段或值
  • 3. 解决方案

    检查并修正工具配置,移除input_examples中不被支持的参数:
    {
        "tools": [
            // ... 其他工具配置
            {
                "type": "custom",
                "custom": {
                    // 移除或修正input_examples中的无效参数
                    "input_examples": {
                        // 只保留系统支持的参数
                        "valid_example": "correct_value"
                    }
                }
            }
        ]
    }

    4. ️ 预防措施

  • 严格遵循API文档:在使用DMXAPI时,仔细查阅官方文档中每个字段的合法参数
  • 使用Schema验证:在发送请求前,使用JSON Schema验证工具检查配置结构的合法性

建议检查API文档中input_examples字段的完整定义,确保只使用支持的参数类型。