gcoai_deprecated_models

  1. Description
  2. Usage
  3. Parameters
  4. Since

Description

Filter the text models OpenAI is shutting down, keyed by shutdown date in Y-m-d format. A model listed here is hidden from the model list unless already selected, labelled as deprecated when shown, and warned about on the feed and in the form editor.

Usage

Applied globally

add_filter( 'gcoai_deprecated_models', 'my_custom_function' );

Parameters

$deprecated array<string, string[]>

Y-m-d => model names.

Since

  • 1.0.9 Hook added.