gcoai_chat_completions_models

  1. Description
  2. Usage
  3. Parameters

Description

Filter the models offered for text generation. Named for Chat Completions for historical reasons; it governs the Responses endpoint and OpenAI Stream fields too, since all of them accept the same models and share this one list.

Usage

Applied globally

add_filter( 'gcoai_chat_completions_models', 'my_custom_function' );

Parameters

$models array<string, array{label?: string, description?: string}>

Model name => info.