Filter: classifai_openai_api_response_post

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

Filter the response from OpenAI for a post 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