Filter: classifai_openai_embeddings_request_body
Filter the request body before sending to OpenAI.
Parameters
| Name | Type | Description |
|---|---|---|
| $body | array | Request body that will be sent to OpenAI. |
| $text | string | Text we are getting embeddings for. |
Since
- 2.2.0
Source
- Defined in
includes/Classifai/Providers/OpenAI/Embeddings.phpat line 1482 - Defined in
includes/Classifai/Providers/OpenAI/Embeddings.phpat line 1558
Returns
Request body.