We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7123e34 commit f20121bCopy full SHA for f20121b
docs/index.md
@@ -74,11 +74,11 @@ Let's start with the first step. Click on the tabs to find the right LM for you.
74
) # or set OPENAI_API_KEY env var
75
76
def query_lm(messages):
77
- response = client.chat.completions.create(
+ response = client.responses.create(
78
model="gpt-5.1",
79
- messages=messages
+ input=messages
80
)
81
- return response.choices[0].message.content
+ return response.output_text
82
```
83
84
=== "Anthropic"
0 commit comments