Skip to main content

Filter: classifai_openai_embeddings_request_body

Filter the request body before sending to OpenAI.

Parameters

NameTypeDescription
$bodyarrayRequest body that will be sent to OpenAI.
$stringsarrayArray of text we are getting embeddings for.

Since

  • 2.2.0

Source

Defined in includes/Classifai/Providers/OpenAI/Embeddings.php at line 1554

Returns

Request body.

Ready to Get Started?

ClassifAI is a Free WordPress plugin that connects to your choice of AI platforms.