Skip to content

Commit

Permalink
gpt 3.5 turbo updated to gpt-40-mini since July 2024 it is recommende… (
Browse files Browse the repository at this point in the history
  • Loading branch information
sahibpreetsingh12 authored Oct 28, 2024
1 parent ae6847b commit bdd2b18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ client = instructor.from_openai(OpenAI())

# Extract structured data from natural language
user_info = client.chat.completions.create(
model="gpt-3.5-turbo",
model="gpt-4o-mini",
response_model=UserInfo,
messages=[{"role": "user", "content": "John Doe is 30 years old."}],
)
Expand Down Expand Up @@ -84,7 +84,7 @@ client.on("completion:kwargs", log_kwargs)
client.on("completion:error", log_exception)

user_info = client.chat.completions.create(
model="gpt-3.5-turbo",
model="gpt-4o-mini",
response_model=UserInfo,
messages=[{"role": "user", "content": "Extract the user name: 'John is 20 years old'"}],
)
Expand All @@ -99,7 +99,7 @@ user_info = client.chat.completions.create(
'content': "Extract the user name: 'John is 20 years old'",
}
],
'model': 'gpt-3.5-turbo',
'model': 'gpt-4o-mini',
'tools': [
{
'type': 'function',
Expand Down

0 comments on commit bdd2b18

Please sign in to comment.