Skip to content

OAI 接口请求时,工具调用要求必须填写 title #214

@LTHPKBTE

Description

@LTHPKBTE

部分工具例如 oai-compatible-copilot 在附加调用工具时可能会不填写 title 参数,导致以下错误

Google API returned status 400 (STREAMING). Response details: {
  "error": {
    "code": 400,
    "message": "Unable to submit request because required fields ['title'] are not defined in the schema properties.",
    "status": "INVALID_ARGUMENT"
  }
}

如果确实是缺少 title 参数的问题,是否可以在 OAI 接口请求没有标题的时候自动附加上标题?例如以下请求

"command": {
"type": "string",
"description": "The command to run"
}

转换成

"command": {
"type": "string",
"description": "The command to run",
"title": "command"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions