Skip to content

Commit c6125ea

Browse files
[Backport 8.x] Fix overlay for inference stream (#3931)
1 parent 2b40d89 commit c6125ea

File tree

5 files changed

+1349
-1080
lines changed

5 files changed

+1349
-1080
lines changed

docs/overlays/elasticsearch-openapi-overlays.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -627,14 +627,15 @@ actions:
627627
indicesLegacyPutTemplateRequestExample1:
628628
$ref: "../../specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml"
629629
## Examples for inference
630-
- target: "$.components['requestBodies']['inference.stream_inference']"
630+
- target: "$.paths['/_inference/chat_completion/{inference_id}/_stream']['post']"
631631
description: "Add example for inference stream request"
632632
update:
633-
content:
634-
application/json:
635-
examples:
636-
streamInferenceRequestExample1:
637-
$ref: "../../specification/inference/stream_inference/examples/request/StreamInferenceRequestExample1.yaml"
633+
requestBody:
634+
content:
635+
application/json:
636+
examples:
637+
streamInferenceRequestExample1:
638+
$ref: "../../specification/inference/stream_completion/examples/request/StreamInferenceRequestExample1.yaml"
638639
## Examples for ingest
639640
- target: "$.components['requestBodies']['simulate.ingest']"
640641
description: "Add example for simulate ingest request"

0 commit comments

Comments
 (0)