Skip to content

Commit 95d3988

Browse files
committed
add batch predict job actiontype in connector
Signed-off-by: Xun Zhang <xunzh@amazon.com>
1 parent 865a424 commit 95d3988

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

common/src/main/java/org/opensearch/ml/common/connector/ConnectorAction.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ public static ConnectorAction parse(XContentParser parser) throws IOException {
182182
}
183183

184184
public enum ActionType {
185-
PREDICT
185+
PREDICT,
186+
BATCH_PREDICT_JOB
186187
}
187188
}

plugin/src/main/java/org/opensearch/ml/settings/MLCommonsSettings.java

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ private MLCommonsSettings() {}
132132
ImmutableList
133133
.of(
134134
"^https://runtime\\.sagemaker\\..*[a-z0-9-]\\.amazonaws\\.com/.*$",
135+
"^https://api\\.sagemaker\\..*[a-z0-9-]\\.amazonaws\\.com/.*$",
135136
"^https://api\\.openai\\.com/.*$",
136137
"^https://api\\.cohere\\.ai/.*$",
137138
"^https://bedrock-runtime\\..*[a-z0-9-]\\.amazonaws\\.com/.*$"

0 commit comments

Comments
 (0)