The docs say it's on by default if you use function calling normally: https://platform.openai.com/docs/guides/text-generation/json...
> Note that JSON mode is always enabled when the model is generating arguments as part of function calling.
``` {"type": "array", "items": {"type": "object", "properties": {"object": {"type": "object"}}}} ```
Somehow the thought to just write the typescript myself never occurred haha.
https://json-schema.org/understanding-json-schema/reference/...