Filter: classifai_openai_embeddings_request_body

apply_filters( 'classifai_openai_embeddings_request_body', $body, $id, $type ) → {array}

Filter the request body before sending to OpenAI.

Parameters:
Name Type Description
$body array

Request body that will be sent to OpenAI.

$id int

ID of item we are getting embeddings for.

$type string

Type of item we are getting embeddings for.

Since:
  • 2.2.0
Source:
Returns:

Request body.

Type
array