Update index.md

This commit is contained in:
Jason Liu
2023-09-26 14:12:29 -04:00
committed by GitHub
parent f834a8fd6c
commit a50b440583
+5 -3
View File
@@ -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.
This project is licensed under ther terms of the MIT License.