Skip to content

Commit eefcecf

Browse files
jaybceetimgrein
andauthored
Update x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/elastic/ElasticInferenceServiceSparseEmbeddingsModel.java
Co-authored-by: Tim Grein <[email protected]>
1 parent f84b1da commit eefcecf

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/ElasticInferenceServiceSparseEmbeddingsModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private URI createUri() throws ElasticsearchStatusException {
101101
switch (modelId) {
102102
case ElserModels.ELSER_V2_MODEL -> modelIdUriPath = "ELSERv2";
103103
default -> throw new ElasticsearchStatusException(
104-
String.format(Locale.ROOT, "Unsupported model for %s [%s]", ELASTIC_INFERENCE_SERVICE_IDENTIFIER, modelId),
104+
String.format(Locale.ROOT, "Unsupported model [%s] for service [%s] and task type [%s]", modelId, ELASTIC_INFERENCE_SERVICE_IDENTIFIER, TaskType.SPARSE_EMBEDDING),
105105
RestStatus.BAD_REQUEST
106106
);
107107
}

0 commit comments

Comments
 (0)