Skip to content

Commit 190a432

Browse files
author
Max Hniebergall
committed
Improve chunked results error message
1 parent 023c856 commit 190a432

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/results

1 file changed

+1
-1
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/results/ResultUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class ResultUtils {
1414

1515
public static ElasticsearchStatusException createInvalidChunkedResultException(String expectedResultName, String receivedResultName) {
1616
return new ElasticsearchStatusException(
17-
"Expected a chunked inference [{}] received [{}]",
17+
"Received incompatible results. Check that your model_id matches the task_type of this endpoint. Expected chunked output of type [{}] but received [{}].",
1818
RestStatus.INTERNAL_SERVER_ERROR,
1919
expectedResultName,
2020
receivedResultName

0 commit comments

Comments
 (0)