Skip to content

Commit 58b665c

Browse files
authored
Add back inference.inference API (#126601) (#126672)
1 parent 0edabdb commit 58b665c

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"inference.inference": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/post-inference-api.html",
5+
"description": "Perform inference"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_inference/{inference_id}",
17+
"methods": ["POST"],
18+
"parts": {
19+
"inference_id": {
20+
"type": "string",
21+
"description": "The inference Id"
22+
}
23+
}
24+
},
25+
{
26+
"path": "/_inference/{task_type}/{inference_id}",
27+
"methods": ["POST"],
28+
"parts": {
29+
"task_type": {
30+
"type": "string",
31+
"description": "The task type"
32+
},
33+
"inference_id": {
34+
"type": "string",
35+
"description": "The inference Id"
36+
}
37+
}
38+
}
39+
]
40+
},
41+
"body": {
42+
"description": "The inference payload"
43+
}
44+
}
45+
}

0 commit comments

Comments
 (0)