Hi everyone, I'm currently using the new beta parameter from OpenAI for json_schema, and this is what I've implemented:
{
'type': 'json_schema',
'json_schema': {
'name': 'Capital_Investment',
'strict': True,
'schema': {
'type': 'object',
'properties': {,
'title': {
'description': 'Write a title for the text along with the name of the company. Write the title in the past tense.',
'type': 'string'
},
'location': {
'description': 'Location given in the text. Output should be country only. Ignore if not given in the text.',
'type': 'array',
'items': {'type': 'string'}
},
'company': {
'description': 'The company mentioned in provided text.',
'type': 'string'
},
},
'required': [
'title',
'location',
'company',
],
'additionalProperties': False
}
}
}
I have a quick question: Is there a method to specify the ordering of the result properties? For instance, I want to list company before location so that I can reference the company' in the prompt of location to find location of the provided company