File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/results Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ pr : 115807
2+ summary : " [Inference API] Improve chunked results error message"
3+ area : Machine Learning
4+ type : enhancement
5+ issues : []
Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ public class ResultUtils {
1414
1515 public static ElasticsearchStatusException createInvalidChunkedResultException (String expectedResultName , String receivedResultName ) {
1616 return new ElasticsearchStatusException (
17- "Expected a chunked inference [{}] received [{}]" ,
18- RestStatus .INTERNAL_SERVER_ERROR ,
17+ "Received incompatible results. Check that your model_id matches the task_type of this endpoint. "
18+ + "Expected chunked output of type [{}] but received [{}]." ,
19+ RestStatus .CONFLICT ,
1920 expectedResultName ,
2021 receivedResultName
2122 );
You can’t perform that action at this time.
0 commit comments