Skip to content

Commit

Permalink
Fix documentation error #1426
Browse files Browse the repository at this point in the history
  • Loading branch information
cpfiffer authored Feb 19, 2025
1 parent ac49f57 commit 4543176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/models/openai.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class Person(BaseModel):
last_name: str
age: int

generate.json(model, Person)
generator = generate.json(model, Person)
generator("current indian prime minister on january 1st 2023")
# Person(first_name='Narendra', last_name='Modi', age=72)

Expand Down

0 comments on commit 4543176

Please sign in to comment.