Skip to content

Commit

Permalink
docs(readme): fix nested params example (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Nov 9, 2023
1 parent eea5bc1 commit ffbe5ec
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,16 @@ from openai import OpenAI

client = OpenAI()

page = client.files.list()
completion = client.chat.completions.create(
messages=[
{
"role": "user",
"content": "Can you generate an example json object describing a fruit?",
}
],
model="gpt-3.5-turbo",
response_format={"type": "json_object"},
)
```

## File Uploads
Expand Down

0 comments on commit ffbe5ec

Please sign in to comment.