Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/changelog/115807.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 115807
summary: "[Inference API] Improve chunked results error message"
area: Machine Learning
type: enhancement
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ public class ResultUtils {

public static ElasticsearchStatusException createInvalidChunkedResultException(String expectedResultName, String receivedResultName) {
return new ElasticsearchStatusException(
"Expected a chunked inference [{}] received [{}]",
RestStatus.INTERNAL_SERVER_ERROR,
"Received incompatible results. Check that your model_id matches the task_type of this endpoint. "
+ "Expected chunked output of type [{}] but received [{}].",
RestStatus.CONFLICT,
expectedResultName,
receivedResultName
);
Expand Down
Loading