How to use new JSON mode to output json and text whenever required

Hey, I would like to use the json mode. But also want the model to return text and json from case to case.
Is there a way to make the model return text and json whenever it is suitable?

1 Like

Hi @hitt.ai

Welcome to the dev community.

If by the New JSON mode, you’re referring to Structured Outputs, you’ll find this useful:

1 Like