Skip to content

Commit 7af8515

Browse files
Update rest-api-spec (#2991)
Co-authored-by: pquentin <[email protected]>
1 parent 2eeaaf5 commit 7af8515

File tree

3 files changed

+85
-0
lines changed

3 files changed

+85
-0
lines changed

output/schema/schema.json

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"inference.stream_inference": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/post-stream-inference-api.html",
5+
"description": "Perform streaming inference"
6+
},
7+
"stability": "experimental",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["text/event-stream"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_inference/{inference_id}/_stream",
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}/_stream",
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)