Share feedback, ideas and get community help

Updated last year

400 [] is too short

At a glance

The post describes an issue where adding and then removing a tool in OpenAI results in the "tools" field being set to an empty array, which is not acceptable to OpenAI and causes a 400 error with the message "400 [] is too short - 'tools'". The comments indicate that community members are aware of the issue and will fix it soon, and one comment includes a link to a related GitHub issue.

Useful resources
Add a tool to OpenAI, and then remove it.
In this case, tools will be set to [] instead of undefined, which is not acceptable to OpenAI.
Plain Text
{
  "status": 500,
  "body": {
    "message": "400 [] is too short - 'tools'",
    "code": "INTERNAL_SERVER_ERROR"
  }
}
Attachment
image.png
Add a reply
Sign up and join the conversation on Discord