Skip to content

Commit 7055790

Browse files
committed
Update model to return correct model for CHAT_COMPLETION task type
1 parent 0971f43 commit 7055790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ private static ElasticInferenceServiceModel createModel(
251251
eisServiceComponents,
252252
context
253253
);
254-
case COMPLETION -> new ElasticInferenceServiceCompletionModel(
254+
case CHAT_COMPLETION -> new ElasticInferenceServiceCompletionModel(
255255
inferenceEntityId,
256256
taskType,
257257
NAME,

0 commit comments

Comments
 (0)