Hi,
Hopefully this is me doing something wrong which can be easily fixed and not a bug…
I’ve successfully run the structured outputs using the client.beta.chat.completions.parse() method but when I’ve tried to do the same in batch processing I am getting errors or missing keys.
{
"id": "batch_req_xxx",
"custom_id": "request-0",
"response": {
"status_code": 400,
"request_id": "xxx",
"body": {
"error": {
"message": "Invalid value: 'object'. Supported values are: 'json_object', 'json_schema', and 'text'.",
"type": "invalid_request_error",
"param": "response_format.type",
"code": "invalid_value"
}
}
},
"error": null
}
this is the response_format I’m using on both API call and batch file:
{
"properties": {
"optimised_title": {
"title": "Optimised Title",
"type": "string"
},
"meta_description": {
"title": "Meta Description",
"type": "string"
}
},
"required": [
"optimised_title",
"meta_description"
],
"title": "DynamicSchema",
"type": "json_schema"
}
The other errors I’m getting is we expected an object but got a string
followed by we expected a string and got an object` after I change it.
I’m be wresting with this for the past 48 hours can anyone help me?