Skip to content

Commit 7fed8e5

Browse files
committed
Add missing param
1 parent 22f1e70 commit 7fed8e5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

includes/Classifai/Providers/Azure/Embeddings.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ private function get_embeddings_similarity( array $embedding, bool $consider_thr
708708
* @param {string} $tax Taxonomy of term.
709709
* @param {bool} $consider_threshold Whether to consider the threshold or not.
710710
*/
711-
do_action( 'classifai_azure_openai_embeddings_single_embedding_similarity', $similarity, $embedding, $chunk, $term_id, $tax );
711+
do_action( 'classifai_azure_openai_embeddings_single_embedding_similarity', $similarity, $embedding, $chunk, $term_id, $tax, $consider_threshold );
712712

713713
if ( false !== $similarity && ( ! $consider_threshold || $similarity <= $threshold ) ) {
714714
$embedding_similarity[] = [

includes/Classifai/Providers/Localhost/OllamaEmbeddings.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ private function get_embeddings_similarity( array $embedding, bool $consider_thr
781781
* @param {string} $tax Taxonomy of term.
782782
* @param {bool} $consider_threshold Whether to consider the threshold or not.
783783
*/
784-
do_action( 'classifai_ollama_embeddings_single_embedding_similarity', $similarity, $embedding, $chunk, $term_id, $tax );
784+
do_action( 'classifai_ollama_embeddings_single_embedding_similarity', $similarity, $embedding, $chunk, $term_id, $tax, $consider_threshold );
785785

786786
if ( false !== $similarity && ( ! $consider_threshold || $similarity <= $threshold ) ) {
787787
$embedding_similarity[] = [

includes/Classifai/Providers/OpenAI/Embeddings.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ private function get_embeddings_similarity( array $embedding, bool $consider_thr
824824
* @param {string} $tax Taxonomy of term.
825825
* @param {bool} $consider_threshold Whether to consider the threshold or not.
826826
*/
827-
do_action( 'classifai_openai_embeddings_single_embedding_similarity', $similarity, $embedding, $chunk, $term_id, $tax );
827+
do_action( 'classifai_openai_embeddings_single_embedding_similarity', $similarity, $embedding, $chunk, $term_id, $tax, $consider_threshold );
828828

829829
if ( false !== $similarity && ( ! $consider_threshold || $similarity <= $threshold ) ) {
830830
$embedding_similarity[] = [

0 commit comments

Comments
 (0)