Skip to content

Commit

Permalink
Update structured_outputs.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoin authored Nov 18, 2024
1 parent 4662ef4 commit 8e3cdd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/models/structured_outputs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ The complete code of the examples can be found on `examples/openai_chat_completi
Experimental Automatic Parsing (OpenAI API)
--------------------------------------------

This section covers the OpenAI beta wrapper over the `client.chat.completions.create()` method that provides richer integrations with Python specific types.
This section covers the OpenAI beta wrapper over the ``client.chat.completions.create()`` method that provides richer integrations with Python specific types.

At the time of writing (`openai==1.54.4`), this is a "beta" feature in the OpenAI client library. Code reference can be found here: https://github.com/openai/openai-python/blob/52357cff50bee57ef442e94d78a0de38b4173fc2/src/openai/resources/beta/chat/completions.py#L100-L104
At the time of writing (``openai==1.54.4``), this is a "beta" feature in the OpenAI client library. Code reference can be found `here <https://github.com/openai/openai-python/blob/52357cff50bee57ef442e94d78a0de38b4173fc2/src/openai/resources/beta/chat/completions.py#L100-L104>`_.

Here is a simple example demonstrating how to get structured output using Pydantic models:

Expand Down

0 comments on commit 8e3cdd7

Please sign in to comment.