Skip to content

Commit b46ba91

Browse files
authored
[ML] Fix serialisation of text embedding updates (#85863) (#85868)
1 parent 6ca9a15 commit b46ba91

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/changelog/85863.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 85863
2+
summary: Fix serialisation of text embedding updates
3+
area: Machine Learning
4+
type: bug
5+
issues: []

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/MlInferenceNamedXContentProvider.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -600,11 +600,7 @@ public List<NamedWriteableRegistry.Entry> getNamedWriteables() {
600600
)
601601
);
602602
namedWriteables.add(
603-
new NamedWriteableRegistry.Entry(
604-
InferenceConfigUpdate.class,
605-
TextEmbeddingConfigUpdate.NAME,
606-
TextClassificationConfigUpdate::new
607-
)
603+
new NamedWriteableRegistry.Entry(InferenceConfigUpdate.class, TextEmbeddingConfigUpdate.NAME, TextEmbeddingConfigUpdate::new)
608604
);
609605
namedWriteables.add(
610606
new NamedWriteableRegistry.Entry(

0 commit comments

Comments
 (0)