Improvement

May 30, 20251 Minute Read

JSON schema support in GitHub Models AI developer tooling

You can now define a required JSON schema directly in the prompt editor UI, just like in the Models playground. This helps ensure model responses follow a consistent structure, reducing the need for post-processing and keeping prompts tightly aligned with your source code. JSON schema enforcement also works with our evaluations tooling for even more reliable testing.

Start building AI apps with GitHub Models today

GitHub Models and all our AI development tooling—including prompt editing and lightweight evaluations—are available now to all GitHub users in public preview. Try it out by enabling it in your repository or organization, or learn more in our documentation.

Help us shape what’s next

We’re just getting started, and your feedback helps guide our roadmap. Join the community discussion to share your thoughts and connect with other developers building the future of AI on GitHub.

Subscribe to our developer newsletter

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

By submitting, I agree to let GitHub and its affiliates use my information for personalized communications, targeted advertising, and campaign effectiveness. See the GitHub Privacy Statement for more details.

JSON schema support in GitHub Models AI developer tooling - GitHub Changelog