Skip to content

Commit

Permalink
Add inference.stream_inference and inference.update (#3399)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
lcawl and l-trotta authored Jan 15, 2025
1 parent ca1a23f commit cf1f2c9
Show file tree
Hide file tree
Showing 13 changed files with 677 additions and 15 deletions.
2 changes: 1 addition & 1 deletion compiler/src/model/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ export function hoistRequestAnnotations (
'manage_enrich', 'manage_ilm', 'manage_index_templates', 'manage_inference', 'manage_ingest_pipelines', 'manage_logstash_pipelines',
'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_search_application', 'manage_search_query_rules', 'manage_search_synonyms',
'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_user_profile',
'manage_watcher', 'monitor', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure',
'manage_watcher', 'monitor', 'monitor_inference', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure',
'monitor_transform', 'monitor_watcher', 'read_ccr', 'read_ilm', 'read_pipeline', 'read_security', 'read_slm', 'transport_client'
]
const values = parseCommaSeparated(value)
Expand Down
10 changes: 9 additions & 1 deletion docs/overlays/elasticsearch-openapi-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -566,4 +566,12 @@ actions:
examples:
updateWatcherSettingsRequestExample1:
$ref: "../../specification/watcher/get_settings/examples/200_response/WatcherGetSettingsResponseExample1.yaml"

## Examples for inference
- target: "$.components['requestBodies']['inference.stream_inference']"
description: "Add example for inference stream request"
update:
content:
application/json:
examples:
streamInferenceRequestExample1:
$ref: "../../specification/inference/stream_inference/examples/request/StreamInferenceRequestExample1.yaml"
210 changes: 207 additions & 3 deletions output/openapi/elasticsearch-openapi.json

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

Loading

0 comments on commit cf1f2c9

Please sign in to comment.