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 committed Jan 15, 2025
1 parent e5658d2 commit 5c3f5db
Show file tree
Hide file tree
Showing 15 changed files with 717 additions and 13 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
14 changes: 13 additions & 1 deletion docs/overlays/elasticsearch-openapi-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -566,4 +566,16 @@ actions:
examples:
updateWatcherSettingsRequestExample1:
$ref: "../../specification/watcher/get_settings/examples/200_response/WatcherGetSettingsResponseExample1.yaml"

<<<<<<< HEAD

=======
## 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"
>>>>>>> cf1f2c9ae (Add inference.stream_inference and inference.update (#3399))
207 changes: 207 additions & 0 deletions output/openapi/elasticsearch-openapi.json

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

15 changes: 15 additions & 0 deletions output/schema/schema-serverless.json

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

Loading

0 comments on commit 5c3f5db

Please sign in to comment.