We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eea5bc1 commit ffbe5ecCopy full SHA for ffbe5ec
README.md
@@ -237,7 +237,16 @@ from openai import OpenAI
237
238
client = OpenAI()
239
240
-page = client.files.list()
+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
+)
250
```
251
252
## File Uploads
0 commit comments