From 9be41512c5dfc1bd9b32d20beda6bafea3b5fa73 Mon Sep 17 00:00:00 2001 From: lcawl Date: Tue, 11 Mar 2025 14:24:06 -0700 Subject: [PATCH] Fix overlay for inference stream --- docs/overlays/elasticsearch-openapi-overlays.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/overlays/elasticsearch-openapi-overlays.yaml b/docs/overlays/elasticsearch-openapi-overlays.yaml index 3c99fe1812..d83cc61e8b 100644 --- a/docs/overlays/elasticsearch-openapi-overlays.yaml +++ b/docs/overlays/elasticsearch-openapi-overlays.yaml @@ -618,14 +618,15 @@ actions: indicesLegacyPutTemplateRequestExample1: $ref: "../../specification/indices/put_template/examples/request/indicesPutTemplateRequestExample1.yaml" ## Examples for inference - - target: "$.components['requestBodies']['inference.stream_inference']" + - target: "$.paths['/_inference/chat_completion/{inference_id}/_stream']['post']" description: "Add example for inference stream request" update: - content: - application/json: - examples: - streamInferenceRequestExample1: - $ref: "../../specification/inference/stream_inference/examples/request/StreamInferenceRequestExample1.yaml" + requestBody: + content: + application/json: + examples: + streamInferenceRequestExample1: + $ref: "../../specification/inference/stream_completion/examples/request/StreamInferenceRequestExample1.yaml" ## Examples for ingest - target: "$.components['requestBodies']['simulate.ingest']" description: "Add example for simulate ingest request"