Skip to content

Commit d8358b3

Browse files
Adding internal input types (#132849)
(cherry picked from commit 1f9b6bb)
1 parent 88dd495 commit d8358b3

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/external/request/elastic/ElasticInferenceServiceSparseEmbeddingsRequest.java

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

0 commit comments

Comments
 (0)