Could anyone guide me with using the new JSON mode Openai has introduced? Should the code be formated like this? The documentation isnt too clear.
{
"model": "gpt-3.5-turbo-1106",
"messages": [
{
"role": "user",
"content": "What is the weather like in Boston? Respond in JSON"
}
],
"response_format": "json_object"
}