Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: JSON mode and structured outputs
status: added
author:
fullname: 'Join the #ai channel on Slack.'
url: 'https://slack.scaleway.com'
date: 2024-09-18
category: ai-data
product: managed-inference
---

All AI models can now reliably generate JSON output when required. The [Chat Completions API](https://www.scaleway.com/en/docs/ai-data/managed-inference/reference-content/openai-compatibility/#supported-parameters) supports the `response_format` parameter, which can be set to either `json_object` or `json_schema`, following OpenAI's specifications exactly.

Refer to [our documentation for code examples](https://www.scaleway.com/en/docs/ai-data/generative-apis/how-to/use-structured-outputs/), including usage with Pydantic models or manual schema definitions.