File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1212# 1. Initialize the `instructor` client using `from_provider`
1313# This sets up the OpenAI client with `instructor`'s patching automatically.
1414# Replace "gpt-3.5-turbo" with your desired OpenAI model.
15- client = instructor .from_provider ("openai/gpt-3.5-turbo " )
15+ client = instructor .from_provider ("openai/gpt-4o-mini " )
1616
1717# 2. Define a simple Pydantic `response_model`
1818# The LLM's response will be automatically parsed and validated into this model.
@@ -25,7 +25,7 @@ class UserDetail(BaseModel):
2525# Instructor ensures the LLM's response conforms to the UserDetail schema.
2626try :
2727 user_data = client .chat .completions .create (
28- model = "gpt-3.5-turbo " , # Ensure this matches the model in from_provider if specific
28+ model = "gpt-4o-mini " , # Ensure this matches the model in from_provider if specific
2929 response_model = UserDetail ,
3030 messages = [
3131 {
You can’t perform that action at this time.
0 commit comments