From 38bda3e1ad3c747426d6b5014e107974448b271a Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 27 Sep 2024 16:21:58 +0100 Subject: [PATCH] Formatting for structured outputs guide (#166) --- .../v2/text-generation/structured-outputs-json.mdx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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