From 2ed1f874c24df2b8c44b77ab544134ad7222ecca Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Mon, 15 May 2023 17:18:11 -0300 Subject: [PATCH] Use correct API signature for instructor embeddings (#62) --- lib/modules/embeddings/model.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/modules/embeddings/model.rb b/lib/modules/embeddings/model.rb index 28850925..e939e895 100644 --- a/lib/modules/embeddings/model.rb +++ b/lib/modules/embeddings/model.rb @@ -71,8 +71,7 @@ module DiscourseAi if name.start_with?("instructor") instructed_input = [ - SiteSetting.ai_embeddings_semantic_related_instruction, - truncated_input, + [SiteSetting.ai_embeddings_semantic_related_instruction, truncated_input], ] end