From 3d54eb57575be6ed9331f449aa0db16a85e9ae49 Mon Sep 17 00:00:00 2001 From: b4sjoo Date: Wed, 18 Dec 2024 09:32:26 +0000 Subject: [PATCH] Fix remote model with embedding input issue Signed-off-by: b4sjoo --- .../ml/common/utils/ModelInterfaceUtils.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/common/src/main/java/org/opensearch/ml/common/utils/ModelInterfaceUtils.java b/common/src/main/java/org/opensearch/ml/common/utils/ModelInterfaceUtils.java index 5c5cc5fd99..5f05ee73ff 100644 --- a/common/src/main/java/org/opensearch/ml/common/utils/ModelInterfaceUtils.java +++ b/common/src/main/java/org/opensearch/ml/common/utils/ModelInterfaceUtils.java @@ -52,10 +52,7 @@ public class ModelInterfaceUtils { + " \"texts\"\n" + " ]\n" + " }\n" - + " },\n" - + " \"required\": [\n" - + " \"parameters\"\n" - + " ]\n" + + " }\n" + "}"; private static final String TITAN_TEXT_EMBEDDING_MODEL_INTERFACE_INPUT = "{\n" @@ -72,10 +69,7 @@ public class ModelInterfaceUtils { + " \"inputText\"\n" + " ]\n" + " }\n" - + " },\n" - + " \"required\": [\n" - + " \"parameters\"\n" - + " ]\n" + + " }\n" + "}"; private static final String TITAN_MULTI_MODAL_EMBEDDING_MODEL_INTERFACE_INPUT = "{\n" @@ -92,10 +86,7 @@ public class ModelInterfaceUtils { + " }\n" + " }\n" + " }\n" - + " },\n" - + " \"required\": [\n" - + " \"parameters\"\n" - + " ]\n" + + " }\n" + "}"; private static final String AMAZON_COMPREHEND_DETECTDOMAINANTLANGUAGE_API_INTERFACE_INPUT = "{\n"