Skip to content

Commit 88dad77

Browse files
authored
Fix cohere model input interface cannot validate cohere input issue (opensearch-project#2847)
* Fix cohere model input interface cannot validate cohere input issue Signed-off-by: b4sjoo <sicheng.song@outlook.com> * Clean out comments Signed-off-by: b4sjoo <sicheng.song@outlook.com> --------- Signed-off-by: b4sjoo <sicheng.song@outlook.com>
1 parent 2a33c65 commit 88dad77

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ public class ModelInterfaceUtils {
4242
+ " \"type\": \"object\",\n"
4343
+ " \"properties\": {\n"
4444
+ " \"texts\": {\n"
45-
+ " \"type\": \"array\",\n"
46-
+ " \"items\": {\n"
47-
+ " \"type\": \"string\"\n"
48-
+ " }\n"
45+
+ " \"type\": \"string\"\n"
4946
+ " }\n"
5047
+ " },\n"
5148
+ " \"required\": [\n"

0 commit comments

Comments
 (0)