Skip to content

Commit

Permalink
[ML] Add ElasticInferenceServiceCompletionServiceSettings (#123155) (#…
Browse files Browse the repository at this point in the history
…123174)

Adding the missing NamedWriteable to the registry.
  • Loading branch information
prwhelan authored Feb 21, 2025
1 parent 673c268 commit 0c3977a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/changelog/123155.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 123155
summary: Add `ElasticInferenceServiceCompletionServiceSettings`
area: Machine Learning
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import org.elasticsearch.xpack.inference.services.cohere.rerank.CohereRerankServiceSettings;
import org.elasticsearch.xpack.inference.services.cohere.rerank.CohereRerankTaskSettings;
import org.elasticsearch.xpack.inference.services.elastic.ElasticInferenceServiceSparseEmbeddingsServiceSettings;
import org.elasticsearch.xpack.inference.services.elastic.completion.ElasticInferenceServiceCompletionServiceSettings;
import org.elasticsearch.xpack.inference.services.elasticsearch.CustomElandInternalServiceSettings;
import org.elasticsearch.xpack.inference.services.elasticsearch.CustomElandInternalTextEmbeddingServiceSettings;
import org.elasticsearch.xpack.inference.services.elasticsearch.ElasticRerankerServiceSettings;
Expand Down Expand Up @@ -634,5 +635,12 @@ private static void addEisNamedWriteables(List<NamedWriteableRegistry.Entry> nam
ElasticInferenceServiceSparseEmbeddingsServiceSettings::new
)
);
namedWriteables.add(
new NamedWriteableRegistry.Entry(
ServiceSettings.class,
ElasticInferenceServiceCompletionServiceSettings.NAME,
ElasticInferenceServiceCompletionServiceSettings::new
)
);
}
}

0 comments on commit 0c3977a

Please sign in to comment.