openai-sdk changedcli-sdks-libraries/libraries/openai-sdk
Nearest release: v2.1.301, published 5 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+8added
Lines−14removed
From line
33
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits12to this page, all time
The whole hunk
from line 33, old and new numbered
/
from line 33
3333
3434### Quick start example
3535
36<CodeGroup exclude="shell">
36<CodeGroup exclude="shell, php">
3737 ```python Python
3838 import os
3939
from line 153
153153 }
154154 ```
155155
156 ```php PHP
157 <?php
158 // There is no official OpenAI PHP SDK, so no example is shown here.
159 // To use Claude from PHP, use the native Claude API instead:
160 // https://platform.claude.com/docs/en/cli-sdks-libraries/overview
161 ```
156 <CodeGroupItem language="PHP">
157 OpenAI has no official PHP SDK. To use Claude from PHP, use the [Claude SDK for PHP](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/php) instead.
158 </CodeGroupItem>
162159
163160 ```ruby Ruby
164161 require "openai"
from line 202
205202
206203You can enable [thinking](https://platform.claude.com/docs/en/build-with-claude/thinking) by adding the `thinking` parameter. On current models thinking is adaptive, with Claude determining when and how deeply to think, and on Claude 5 models it is on by default; manually configured extended thinking is a legacy mode. Although thinking improves Claude's reasoning for complex tasks, the OpenAI SDK doesn't return Claude's thinking. For full thinking features, including [summarized thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#summarized-thinking), use the native Claude API.
207204
208<CodeGroup exclude="shell">
205<CodeGroup exclude="shell, php">
209206 ```python Python
210207 response = client.chat.completions.create(
211208 model="claude-sonnet-4-6",
from line 260
263260 ChatCompletion completion = client.chat().completions().create(params);
264261 ```
265262
266 ```php PHP
267 <?php
268 // There is no official OpenAI PHP SDK, so no example is shown here.
269 // To use Claude from PHP, use the native Claude API instead:
270 // https://platform.claude.com/docs/en/cli-sdks-libraries/overview
271 ```
263 <CodeGroupItem language="PHP">
264 OpenAI has no official PHP SDK. To use Claude from PHP, use the [Claude SDK for PHP](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/php) instead.
265 </CodeGroupItem>
272266
273267 ```ruby Ruby
274268 response = openai.chat.completions.create(
No line in this hunk matches that.