Comment

Comment by slashtmpslashme

Use structured output / response format with JSON schema feature if your models provide it (openai for sure does, I think it's json_schema instead of json_object and provide a schema).

Otherwise there are libraries like instructor (python) which can help to generate json in markdown code blocks.

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton