From 0e7111393d7d35eeb85f8d8629742cfa361c4fab Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Thu, 9 Nov 2023 17:12:54 +0000 Subject: [PATCH] docs(readme): fix nested params example --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cedbc72337..11a1236b5a 100644 --- a/README.md +++ b/README.md @@ -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