Back to All questions How do I fix BadRequestError: 400 - Invalid schema for response_format: 'additionalProperties' is required to be supplied and to be false? Ask question python Copy
schema = {
"type" : "object" ,
"properties" : {"name" : {"type" : "string" }}
}
Error:
text Copy
BadRequestError: Error code: 400 - {'error': {'message': "Invalid
schema for response_format: 'additionalProperties' is required to
be supplied and to be false."}}
1 answerHelpful solutions from the community Fix:
python Copy
schema = {
"type" : "object" ,
"properties" : {"name" : {"type" : "string" }},
"required" : ["name" ],
"additionalProperties" : False
}
Need a custom solution? Tell us about your project and get help tailored to your problem.
Contact us Have an answer? Join the conversation. Everyone can read. Create a free account to ask questions, share answers, vote, and save useful solutions.