model management

Model Deprecations

List models with known deprecation/sunset dates, bucketed by urgency.

Reads deprecation_date metadata from model_prices_and_context_window.json (and any per-deployment model_info.deprecation_date overrides) for the models configured on this proxy.

Parameters: warn_within_days: Window (in days) used to bucket "imminent" models, 30 by default.

Returns: A payload with three lists of ModelDeprecationInfo entries:

- `deprecated`: deprecation date is in the past, so these requests may
  fail at any time.
- `imminent`: deprecation date is within `warn_within_days` from today.
- `upcoming`: deprecation date is further out.

Example:

curl -X GET 'http://localhost:4000/model/deprecations' \
    -H 'Authorization: Bearer sk-1234'
get/v1/model/deprecations

Query parameters

warn_within_daysinteger

Response

Successful Response

warn_within_daysinteger required

The window (in days) used to bucket 'imminent' models.

checked_atstring date-time required

UTC timestamp when the deprecation snapshot was generated.

Changes

Changed in 1 of the 42 revisions of this API.1