Skip to content

Commit 2f359b1

Browse files
committed
Add inference.stream_inference and inference.update (#3399)
* Add inference.stream_inference * Add inference.update * Add array of strings to stream inference input * update inference response with streamresult type * fix overlay * fix wrong rebase * fix overlay wrong indent --------- Co-authored-by: Laura Trotta <laura.trotta@elastic.co>
1 parent b1889cf commit 2f359b1

File tree

14 files changed

+1338
-30
lines changed

14 files changed

+1338
-30
lines changed

compiler/src/model/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ export function hoistRequestAnnotations (
670670
'manage_enrich', 'manage_ilm', 'manage_index_templates', 'manage_inference', 'manage_ingest_pipelines', 'manage_logstash_pipelines',
671671
'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_search_application', 'manage_search_query_rules', 'manage_search_synonyms',
672672
'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_user_profile',
673-
'manage_watcher', 'monitor', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure',
673+
'manage_watcher', 'monitor', 'monitor_inference', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure',
674674
'monitor_transform', 'monitor_watcher', 'read_ccr', 'read_ilm', 'read_pipeline', 'read_security', 'read_slm', 'transport_client'
675675
]
676676
const values = parseCommaSeparated(value)

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,4 +566,12 @@ actions:
566566
examples:
567567
updateWatcherSettingsRequestExample1:
568568
$ref: "../../specification/watcher/get_settings/examples/200_response/WatcherGetSettingsResponseExample1.yaml"
569-
569+
## Examples for inference
570+
- target: "$.components['requestBodies']['inference.stream_inference']"
571+
description: "Add example for inference stream request"
572+
update:
573+
content:
574+
application/json:
575+
examples:
576+
streamInferenceRequestExample1:
577+
$ref: "../../specification/inference/stream_inference/examples/request/StreamInferenceRequestExample1.yaml"

output/openapi/elasticsearch-openapi.json

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

0 commit comments

Comments
 (0)