Filter: classifai_ollama_embeddings_request_body

apply_filters( 'classifai_ollama_embeddings_request_body', $body, $text ) → {array}

Filter the request body before sending to Ollama.

Parameters:
Name Type Description
$body array

Request body that will be sent to Ollama.

$text string

Text we are getting embeddings for.

Since:
  • 3.3.0
Source:
Returns:

Request body.

Type
array

apply_filters( 'classifai_ollama_embeddings_request_body', $body, $strings ) → {array}

Filter the request body before sending to Ollama.

Parameters:
Name Type Description
$body array

Request body that will be sent to Ollama.

$strings array

Array of text we are getting embeddings for.

Since:
  • 3.3.0
Source:
Returns:

Request body.

Type
array