openai-sdk changedcli-sdks-libraries/libraries/openai-sdk
Recorded here
Lines+30added
Lines−30removed
From line
178
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits22to this page, all time
The whole hunk
from line 178, old and new numbered
/
from line 178
178178 ```
179179
180180 <CodeGroupItem language="PHP">
181 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.
181 OpenAI has no official PHP SDK. To use Claude from PHP, use the [Anthropic SDK for PHP](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/php) instead.
182182 </CodeGroupItem>
183183
184184 ```ruby Ruby
from line 296
296296 ```
297297
298298 <CodeGroupItem language="PHP">
299 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.
299 OpenAI has no official PHP SDK. To use Claude from PHP, use the [Anthropic SDK for PHP](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/php) instead.
300300 </CodeGroupItem>
301301
302302 ```ruby Ruby
from line 318
318318
319319#### Simple fields
320320
321| Field | Support status |
322| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
323| `model` | Use Claude model names |
324| `max_tokens` | Fully supported |
325| `max_completion_tokens` | Fully supported |
326| `stream` | Fully supported |
327| `stream_options` | Fully supported |
328| `top_p` | Passed through to the model. Claude 4.7 and later models and Claude Mythos Preview return a 400 error for any value other than `0.99`, the default, so omit it. A request that sets both `temperature` and `top_p` also returns a 400 error. See [Using the Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages). |
329| `parallel_tool_calls` | Fully supported |
330| `tool_choice` | Supported with limits. `"required"` and a named function force a tool call. Claude Fable 5.2, Claude Mythos 5.2, Claude Opus 5.5, Claude Sonnet 5.5, Claude Fable 5.1, and Claude Mythos 5.1 don’t support forced tool use and return a 400 error, so use `"auto"` on those models. See [Forcing tool use](https://platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools#forcing-tool-use). |
331| `stop` | All non-whitespace stop sequences work |
332| `temperature` | Between 0 and 1 (inclusive). Values greater than 1 are capped at 1. On Claude 4.7 and later models and Claude Mythos Preview, any value below 1 returns a 400 error, so omit it. See [Using the Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages). |
333| `n` | Must be exactly 1. Any other value returns a 400 error. |
334| `response_format` | Supported with limits. Only `json_schema` with `strict: true` is accepted, and the structured outputs [JSON Schema limitations](https://platform.claude.com/docs/en/build-with-claude/structured-outputs#json-schema-limitations) apply. Any other value, including `json_object` and `text`, returns a 400 error. |
335| `logprobs` | Ignored |
336| `metadata` | Ignored |
337| `prediction` | Ignored |
338| `presence_penalty` | Ignored |
339| `frequency_penalty` | Ignored |
340| `seed` | Ignored |
341| `service_tier` | Ignored |
342| `audio` | Ignored |
343| `logit_bias` | Ignored |
344| `store` | Ignored |
345| `user` | Ignored |
346| `modalities` | Ignored |
347| `top_logprobs` | Ignored |
348| `reasoning_effort` | Ignored |
321| Field | Support status |
322| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
323| `model` | Use Claude model names |
324| `max_tokens` | Fully supported |
325| `max_completion_tokens` | Fully supported |
326| `stream` | Fully supported |
327| `stream_options` | Fully supported |
328| `top_p` | Passed through to the model. Claude 4.7 and later models and Claude Mythos Preview return a 400 error for any value other than `0.99`, the default, so omit it. A request that sets both `temperature` and `top_p` also returns a 400 error. See [Using the Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages). |
329| `parallel_tool_calls` | Fully supported |
330| `tool_choice` | Supported with limits. `"required"` and a named function force a tool call. Some models return a 400 error for forced tool use: Claude Fable 5.2, Claude Mythos 5.2, Claude Opus 5.5, Claude Sonnet 5.5, Claude Fable 5.1, and Claude Mythos 5.1. Use `"auto"` on those models. See [Forcing tool use](https://platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools#forcing-tool-use). |
331| `stop` | All non-whitespace stop sequences work |
332| `temperature` | Between 0 and 1 (inclusive). Values greater than 1 are capped at 1. On Claude 4.7 and later models and Claude Mythos Preview, any value below 1 returns a 400 error, so omit it. See [Using the Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages). |
333| `n` | Must be exactly 1. Any other value returns a 400 error. |
334| `response_format` | Supported with limits. Only `json_schema` with `strict: true` is accepted, and the structured outputs [JSON Schema limitations](https://platform.claude.com/docs/en/build-with-claude/structured-outputs#json-schema-limitations) apply. Any other value, including `json_object` and `text`, returns a 400 error. |
335| `logprobs` | Ignored |
336| `metadata` | Ignored |
337| `prediction` | Ignored |
338| `presence_penalty` | Ignored |
339| `frequency_penalty` | Ignored |
340| `seed` | Ignored |
341| `service_tier` | Ignored |
342| `audio` | Ignored |
343| `logit_bias` | Ignored |
344| `store` | Ignored |
345| `user` | Ignored |
346| `modalities` | Ignored |
347| `top_logprobs` | Ignored |
348| `reasoning_effort` | Ignored |
349349
350350#### `tools` / `functions` fields
351351
No line in this hunk matches that.