Skip to content

Commit ffbe5ec

Browse files
docs(readme): fix nested params example (#756)
1 parent eea5bc1 commit ffbe5ec

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,16 @@ from openai import OpenAI
237237

238238
client = OpenAI()
239239

240-
page = client.files.list()
240+
completion = client.chat.completions.create(
241+
messages=[
242+
{
243+
"role": "user",
244+
"content": "Can you generate an example json object describing a fruit?",
245+
}
246+
],
247+
model="gpt-3.5-turbo",
248+
response_format={"type": "json_object"},
249+
)
241250
```
242251

243252
## File Uploads

0 commit comments

Comments
 (0)