Filter: classifai_openai_api_response_post_form

apply_filters( 'classifai_openai_api_response_post_form', $response, $url, $options, $this->feature ) → {array}

Filter the response from OpenAI for a post form request.

Parameters:
Name Type Description
$response array | WP_Error

The API response.

$url string

Request URL.

$options array

Request body options.

$this->feature string

Feature name.

Since:
  • 2.4.0
Source:
Returns:

API response.

Type
array