diff --git a/README.md b/README.md index 7e4f0ae657..a8d25a89e5 100644 --- a/README.md +++ b/README.md @@ -379,15 +379,10 @@ from openai import OpenAI client = OpenAI() -response = client.chat.responses.create( - input=[ - { - "role": "user", - "content": "How much ?", - } - ], +response = client.responses.create( model="gpt-5.2", - response_format={"type": "json_object"}, + input="Generate an example JSON object describing a fruit.", + text={"format": {"type": "json_object"}}, ) ```