Error
I’m developing an agent that uses Structured Outputs to generate inputs for a function. I already tested it locally & made sure everything works. But when I deployed it, I got this error on my cloud logs:
Error code: 400 - {'error': {'message': "Invalid schema for function 'CreateFilter': In context=('properties', 'filter_object'), schema must have a 'type' key.", 'type': 'invalid_request_error', 'param': 'tools[8].function.parameters', 'code': 'invalid_function_parameters'}}
Responsible Code
My schema includes 3 instances of this filter_object
param. As you see though, the param includes the type
key. I made sure all 3 instances include the key
What I tried so far
- re-run locally → works no issues
- re-deploy → still the same error
- log the schema in the deployed version → shows the correct schema with the
type
key in every instance offilter_object