Skip to content

Commit

Permalink
Update rest-api-spec (#2991)
Browse files Browse the repository at this point in the history
Co-authored-by: pquentin <[email protected]>
  • Loading branch information
github-actions[bot] and pquentin authored Oct 8, 2024
1 parent 2eeaaf5 commit 7af8515
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
34 changes: 34 additions & 0 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions output/schema/validation-errors.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions specification/_json_spec/inference.stream_inference.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"inference.stream_inference": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/post-stream-inference-api.html",
"description": "Perform streaming inference"
},
"stability": "experimental",
"visibility": "public",
"headers": {
"accept": ["text/event-stream"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_inference/{inference_id}/_stream",
"methods": ["POST"],
"parts": {
"inference_id": {
"type": "string",
"description": "The inference Id"
}
}
},
{
"path": "/_inference/{task_type}/{inference_id}/_stream",
"methods": ["POST"],
"parts": {
"task_type": {
"type": "string",
"description": "The task type"
},
"inference_id": {
"type": "string",
"description": "The inference Id"
}
}
}
]
},
"body": {
"description": "The inference payload"
}
}
}

0 comments on commit 7af8515

Please sign in to comment.