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 8e3cdd7 commit e4efdfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/source/models/structured_outputs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ This section covers the OpenAI beta wrapper over the ``client.chat.completions.c

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>`_.

For the following examples, vLLM was setup using ``vllm serve meta-llama/Llama-3.1-8B-Instruct``

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

.. code-block:: python
Expand Down

0 comments on commit e4efdfc

Please sign in to comment.