面板版本:11.8.1操作系统:Linux-6.8.0-51-generic-x86_64-with-debian-trixie-sid触发位置:宝塔面板 → AI 助手使用模型:gpt-5.6-luna(OpenAI 兼容接口)问题描述:在 AI 助手中选择 gpt-5.6-luna 模型对话时,模型 API 返回 400 错误:Error code: 400 - {'error': {'message': "Invalid schema for function 'Glob': In context=(), 'required' is required to be supplied and to be an array including every key in properties. Missing 'path'.", 'type': 'invalid_request_error'}}另外,关闭“智能模式”后,AI 助手似乎仍会继续下发 tools,导致同样类型的 schema 校验错误。建议修复:1. 调整 AI 助手 tools 的 JSON Schema,将 path 等参数根据模型要求正确加入 required,或增加模型兼容性适配。2. 关闭“智能模式”/工具开关时,应真正从请求中移除 tools 字段,而不是仅在前端隐藏。
|
|