diff --git a/fern/pages/v2/text-generation/structured-outputs-json.mdx b/fern/pages/v2/text-generation/structured-outputs-json.mdx index 82d3bbae..ca3edee7 100644 --- a/fern/pages/v2/text-generation/structured-outputs-json.mdx +++ b/fern/pages/v2/text-generation/structured-outputs-json.mdx @@ -46,10 +46,9 @@ By setting the `response_format` type to `"json_object"` in the Chat API, the ou ``` - -> 📘 Important -> -> When using `{ "type": "json_object" }` your `message` should always explicitly instruct the model to generate a JSON (eg: _"Generate a JSON ..."_) . Otherwise the model may end up getting stuck generating an infinite stream of characters and eventually run out of context length. + + When using `{ "type": "json_object" }` your `message` should always explicitly instruct the model to generate a JSON (eg: _"Generate a JSON ..."_) . Otherwise the model may end up getting stuck generating an infinite stream of characters and eventually run out of context length. + ## Specifying a schema (beta) @@ -99,9 +98,9 @@ In this schema, we defined three keys ("title," "author," "publication_year") an ``` -> 📘 Important -> -> Specifying a `schema` adds even more latency, proportional to the complexity of the schema. This parameter is in **beta**, and will continue seeing performance improvements. + +Specifying a `json_schema` adds even more latency, proportional to the complexity of the schema. This parameter is in **beta**, and will continue seeing performance improvements. + ### Generating nested objects