Skip to content

Commit be37851

Browse files
Adding internal input types (elastic#132849) (elastic#133144)
(cherry picked from commit 1f9b6bb)
1 parent 441f3a6 commit be37851

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/elastic/request/ElasticInferenceServiceSparseEmbeddingsRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ public boolean[] getTruncationInfo() {
108108
// visible for testing
109109
static ElasticInferenceServiceUsageContext inputTypeToUsageContext(InputType inputType) {
110110
switch (inputType) {
111-
case SEARCH -> {
111+
case SEARCH, INTERNAL_SEARCH -> {
112112
return ElasticInferenceServiceUsageContext.SEARCH;
113113
}
114-
case INGEST -> {
114+
case INGEST, INTERNAL_INGEST -> {
115115
return ElasticInferenceServiceUsageContext.INGEST;
116116
}
117117
default -> {

0 commit comments

Comments
 (0)