Module Chatoyant_tokens.LifecycleSource

First-party API lifecycle information for model ids.

Sourcetype status =
  1. | Active
  2. | Deprecated
  3. | Retired
Sourcetype info = {
  1. status : status;
  2. deprecated_on : string option;
  3. retires_on : string option;
  4. replacement : string option;
  5. note : string option;
}
Sourceval lifecycle : string -> info option

Look up a model or its dated snapshot. Dates use YYYY-MM-DD.

Sourceval warning : string -> string option

Describe a recorded deprecation or retirement.

Sourceval set_warning_handler : (string -> unit) -> unit

Set the request warning handler. The default writes to stderr. Pass ignore to silence warnings.

Sourceval warn_once : string -> unit

Deliver at most one lifecycle warning per case-normalized model id.