Skip to content

Commit 3d54eb5

Browse files
committed
Fix remote model with embedding input issue
Signed-off-by: b4sjoo <sicheng.song@outlook.com>
1 parent 58903ba commit 3d54eb5

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

common/src/main/java/org/opensearch/ml/common/utils/ModelInterfaceUtils.java

+3-12
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ public class ModelInterfaceUtils {
5252
+ " \"texts\"\n"
5353
+ " ]\n"
5454
+ " }\n"
55-
+ " },\n"
56-
+ " \"required\": [\n"
57-
+ " \"parameters\"\n"
58-
+ " ]\n"
55+
+ " }\n"
5956
+ "}";
6057

6158
private static final String TITAN_TEXT_EMBEDDING_MODEL_INTERFACE_INPUT = "{\n"
@@ -72,10 +69,7 @@ public class ModelInterfaceUtils {
7269
+ " \"inputText\"\n"
7370
+ " ]\n"
7471
+ " }\n"
75-
+ " },\n"
76-
+ " \"required\": [\n"
77-
+ " \"parameters\"\n"
78-
+ " ]\n"
72+
+ " }\n"
7973
+ "}";
8074

8175
private static final String TITAN_MULTI_MODAL_EMBEDDING_MODEL_INTERFACE_INPUT = "{\n"
@@ -92,10 +86,7 @@ public class ModelInterfaceUtils {
9286
+ " }\n"
9387
+ " }\n"
9488
+ " }\n"
95-
+ " },\n"
96-
+ " \"required\": [\n"
97-
+ " \"parameters\"\n"
98-
+ " ]\n"
89+
+ " }\n"
9990
+ "}";
10091

10192
private static final String AMAZON_COMPREHEND_DETECTDOMAINANTLANGUAGE_API_INTERFACE_INPUT = "{\n"

0 commit comments

Comments
 (0)