From a50b4405830d02b538810ab3d23a098aff73010a Mon Sep 17 00:00:00 2001 From: Jason Liu Date: Tue, 26 Sep 2023 14:12:29 -0400 Subject: [PATCH] Update index.md --- docs/index.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/index.md b/docs/index.md index 927001c..0f42ac9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -52,10 +52,12 @@ First, import the required libraries and apply the patch function to the OpenAI ```python import openai +import instructor from pydantic import BaseModel -from instructor import patch -patch() +# This enables response_model keyword +# from openai.ChatCompletion.create +instructor.patch() ``` ### Step 2: Define the Pydantic Model @@ -262,4 +264,4 @@ To see more examples of how we can create interesting models check out some [exa ## License -This project is licensed under ther terms of the MIT License. \ No newline at end of file +This project is licensed under ther terms of the MIT License.