diff --git a/README.md b/README.md index 90f1c2cbd9..8517cbc3f0 100644 --- a/README.md +++ b/README.md @@ -475,11 +475,11 @@ from openai import OpenAI client = OpenAI() -response = client.chat.responses.create( - input=[ +response = client.chat.completions.create( + messages=[ { "role": "user", - "content": "How much ?", + "content": "Can you generate an example json object describing a fruit?", } ], model="gpt-5.2",