Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

openai-sdk changedcli-sdks-libraries/libraries/openai-sdk

Nearest release: v2.1.330, published under an hour 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+112added
Lines−112removed
From line 318 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits23to this page, all time

The whole hunk

from line 318, old and new numbered
/
lines
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. 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 |
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 
from line 354
354354 <Tab title="Tools">
355355 `tools[n].function` fields
356356 
357 | Field | Support status |
358 | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
359 | `name` | Fully supported |
360 | `description` | Fully supported |
361 | `parameters` | Fully supported |
362 | `strict` | Ignored. Use [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs) with the native Claude API for strict schema validation. |
357 | Field | Support status |
358 | ----- | ----- |
359 | `name` | Fully supported |
360 | `description` | Fully supported |
361 | `parameters` | Fully supported |
362 | `strict` | Ignored. Use [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs) with the native Claude API for strict schema validation. |
363363 </Tab>
364364 
365365 <Tab title="Functions">
from line 369
369369 OpenAI has deprecated the `functions` field and recommends using `tools` instead.
370370 </Info>
371371 
372 | Field | Support status |
373 | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
374 | `name` | Fully supported |
375 | `description` | Fully supported |
376 | `parameters` | Fully supported |
377 | `strict` | Ignored. Use [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs) with the native Claude API for strict schema validation. |
372 | Field | Support status |
373 | ----- | ----- |
374 | `name` | Fully supported |
375 | `description` | Fully supported |
376 | `parameters` | Fully supported |
377 | `strict` | Ignored. Use [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs) with the native Claude API for strict schema validation. |
378378 </Tab>
379379 </Tabs>
380380</Accordion>
from line 390
390390 Developer messages are hoisted to the beginning of the conversation as part of the initial system message.
391391 </Info>
392392 
393 | Field | Support status |
394 | --------- | ---------------------------- |
393 | Field | Support status |
394 | ----- | ----- |
395395 | `content` | Fully supported, but hoisted |
396 | `name` | Ignored |
396 | `name` | Ignored |
397397 </Tab>
398398 
399399 <Tab title="System role">
from line 403
403403 System messages are hoisted to the beginning of the conversation as part of the initial system message.
404404 </Info>
405405 
406 | Field | Support status |
407 | --------- | ---------------------------- |
406 | Field | Support status |
407 | ----- | ----- |
408408 | `content` | Fully supported, but hoisted |
409 | `name` | Ignored |
409 | `name` | Ignored |
410410 </Tab>
411411 
412412 <Tab title="User role">
413413 Fields for `messages[n].role == "user"`
414414 
415 | Field | Variant | Sub-field | Support status |
416 | --------- | -------------------------------- | --------- | ------------------- |
417 | `content` | `string` | | Fully supported |
418 | | `array`, `type == "text"` | | Fully supported |
419 | | `array`, `type == "image_url"` | `url` | Fully supported |
420 | | | `detail` | Ignored |
421 | | `array`, `type == "input_audio"` | | Returns a 400 error |
422 | | `array`, `type == "file"` | | Returns a 400 error |
423 | `name` | | | Ignored |
415 | Field | Variant | Sub-field | Support status |
416 | ----- | ----- | ----- | ----- |
417 | `content` | `string` | | Fully supported |
418 | | `array`, `type == "text"` | | Fully supported |
419 | | `array`, `type == "image_url"` | `url` | Fully supported |
420 | | | `detail` | Ignored |
421 | | `array`, `type == "input_audio"` | | Returns a 400 error |
422 | | `array`, `type == "file"` | | Returns a 400 error |
423 | `name` | | | Ignored |
424424 </Tab>
425425 
426426 <Tab title="Assistant role">
427427 Fields for `messages[n].role == "assistant"`
428428 
429 | Field | Variant | Support status |
430 | --------------- | ---------------------------- | --------------- |
431 | `content` | `string` | Fully supported |
432 | | `array`, `type == "text"` | Fully supported |
433 | | `array`, `type == "refusal"` | Ignored |
434 | `tool_calls` | | Fully supported |
435 | `function_call` | | Fully supported |
436 | `audio` | | Ignored |
437 | `refusal` | | Ignored |
429 | Field | Variant | Support status |
430 | ----- | ----- | ----- |
431 | `content` | `string` | Fully supported |
432 | | `array`, `type == "text"` | Fully supported |
433 | | `array`, `type == "refusal"` | Ignored |
434 | `tool_calls` | | Fully supported |
435 | `function_call` | | Fully supported |
436 | `audio` | | Ignored |
437 | `refusal` | | Ignored |
438438 </Tab>
439439 
440440 <Tab title="Tool role">
441441 Fields for `messages[n].role == "tool"`
442442 
443 | Field | Variant | Support status |
444 | -------------- | ------------------------- | --------------- |
445 | `content` | `string` | Fully supported |
446 | | `array`, `type == "text"` | Fully supported |
447 | `tool_call_id` | | Fully supported |
448 | `name` | | Ignored |
443 | Field | Variant | Support status |
444 | ----- | ----- | ----- |
445 | `content` | `string` | Fully supported |
446 | | `array`, `type == "text"` | Fully supported |
447 | `tool_call_id` | | Fully supported |
448 | `name` | | Ignored |
449449 </Tab>
450450 
451451 <Tab title="Function role">
452452 Fields for `messages[n].role == "function"`
453453 
454 | Field | Variant | Support status |
455 | --------- | -------- | ---------------------------------- |
456 | `content` | `string` | Fully supported |
457 | `name` | | Required, but the value is ignored |
454 | Field | Variant | Support status |
455 | ----- | ----- | ----- |
456 | `content` | `string` | Fully supported |
457 | `name` | | Required, but the value is ignored |
458458 </Tab>
459459 </Tabs>
460460</Accordion>
from line 461
461461 
462462### Response fields
463463 
464| Field | Support status |
465| --------------------------------- | ------------------------ |
466| `id` | Fully supported |
467| `choices[]` | Always has a length of 1 |
468| `choices[].finish_reason` | Fully supported |
469| `choices[].index` | Fully supported |
470| `choices[].message.role` | Fully supported |
471| `choices[].message.content` | Fully supported |
472| `choices[].message.tool_calls` | Fully supported |
473| `object` | Fully supported |
474| `created` | Fully supported |
475| `model` | Fully supported |
476| `usage.completion_tokens` | Fully supported |
477| `usage.prompt_tokens` | Fully supported |
478| `usage.total_tokens` | Fully supported |
479| `usage.completion_tokens_details` | Always empty |
480| `usage.prompt_tokens_details` | Always empty |
481| `choices[].message.refusal` | Always empty |
482| `choices[].message.audio` | Always empty |
483| `logprobs` | Always empty |
484| `service_tier` | Always empty |
485| `system_fingerprint` | Always empty |
464| Field | Support status |
465| ----- | ----- |
466| `id` | Fully supported |
467| `choices[]` | Always has a length of 1 |
468| `choices[].finish_reason` | Fully supported |
469| `choices[].index` | Fully supported |
470| `choices[].message.role` | Fully supported |
471| `choices[].message.content` | Fully supported |
472| `choices[].message.tool_calls` | Fully supported |
473| `object` | Fully supported |
474| `created` | Fully supported |
475| `model` | Fully supported |
476| `usage.completion_tokens` | Fully supported |
477| `usage.prompt_tokens` | Fully supported |
478| `usage.total_tokens` | Fully supported |
479| `usage.completion_tokens_details` | Always empty |
480| `usage.prompt_tokens_details` | Always empty |
481| `choices[].message.refusal` | Always empty |
482| `choices[].message.audio` | Always empty |
483| `logprobs` | Always empty |
484| `service_tier` | Always empty |
485| `system_fingerprint` | Always empty |
486486 
487487### Error message compatibility
488488 
from line 492
492492 
493493If your code reads or sets headers directly, the following table shows how the Claude API handles OpenAI’s headers.
494494 
495| Header | Support status |
496| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
497| `x-ratelimit-limit-requests` | Not returned. The request limit is in `x-ratelimit-requests`. |
498| `x-ratelimit-limit-tokens` | Not returned. The token limit is in `x-ratelimit-tokens`. |
499| `x-ratelimit-remaining-requests` | Fully supported |
500| `x-ratelimit-remaining-tokens` | Fully supported |
501| `x-ratelimit-reset-requests` | Fully supported |
502| `x-ratelimit-reset-tokens` | Fully supported |
503| `retry-after` | Fully supported |
504| `x-request-id` | Fully supported. Carries the Claude API [request ID](https://platform.claude.com/docs/en/api/errors#request-id) in place of the `request-id` header. |
505| `openai-version` | Not returned |
506| `openai-processing-ms` | Not returned |
507| `authorization` | Fully supported |
495| Header | Support status |
496| ----- | ----- |
497| `x-ratelimit-limit-requests` | Not returned. The request limit is in `x-ratelimit-requests`. |
498| `x-ratelimit-limit-tokens` | Not returned. The token limit is in `x-ratelimit-tokens`. |
499| `x-ratelimit-remaining-requests` | Fully supported |
500| `x-ratelimit-remaining-tokens` | Fully supported |
501| `x-ratelimit-reset-requests` | Fully supported |
502| `x-ratelimit-reset-tokens` | Fully supported |
503| `retry-after` | Fully supported |
504| `x-request-id` | Fully supported. Carries the Claude API [request ID](https://platform.claude.com/docs/en/api/errors#request-id) in place of the `request-id` header. |
505| `openai-version` | Not returned |
506| `openai-processing-ms` | Not returned |
507| `authorization` | Fully supported |
508508 
509509## Availability
510510 
from line 516
516516 
517517* Availability: Available
518518 
519| Status | Cloud platforms |
520| --------- | --------------- |
521| Available | Claude API |
519| Status | Cloud platforms |
520| ----- | ----- |
521| Available | Claude API |
522522 
Feedback