Require JSON output from Workers AI?

Hello!

Looking through all the models in Workers AI.

Any chance to force output response in JSON format?

I saw OpenAI has a JSON mode but not sure if cloudflare offers anything like that?
https://community.openai.com/t/openai-api-guide-using-json-mode/557265

Thanks!
OpenAI Developer Forum
OpenAI’s API now features a JSON mode, streamlining response structuring and enhancing integration capabilities. As a practical example, I’ve developed GuardRail, an open-source project utilizing this mode, showcasing how JSON-formatted outputs can significantly improve system interactions and data processing in OpenAI applications. You can see...
Was this page helpful?