Skip to content

fix(OpenAI): add shutdown_date to the models retrieve and list responses - #851

Merged
iBotPeaches merged 1 commit into
openai-php:mainfrom
scotteuser:models-shutdown-date
Nov 14, 2026
Merged

iBotPeaches merged 1 commit into
openai-php:mainfrom
scotteuser:models-shutdown-date

Conversation

@scotteuser

Copy link
Copy Markdown
Contributor

What:

  • Bug Fix
  • New Feature

Description:

OpenAI\Responses\Models\RetrieveResponse::from() only keeps id, object, created and owned_by, so the shutdown_date the Models API returns is lost from both retrieve() and list().

This adds a nullable shutdownDate property, includes shutdown_date in toArray(), and updates the array shapes, the fake fixture and the README. The value is null when the API leaves it out (OpenAI-compatible servers, or models with no announced shutdown).

Related:

See #850 for more details

fixes: #850

@iBotPeaches

Copy link
Copy Markdown
Collaborator

thanks!

@iBotPeaches
iBotPeaches merged commit 82280b6 into openai-php:main Nov 14, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Models RetrieveResponse / ListResponse drop shutdown_date

2 participants