From 2bedd44564987ae81f53891d273a353a69d27eef Mon Sep 17 00:00:00 2001 From: Jan Kazlouski Date: Thu, 13 Nov 2025 16:55:38 +0200 Subject: [PATCH 1/2] Add OpenShift AI inference endpoint configuration --- .../api/inference.put_openshift_ai.json | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_openshift_ai.json diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_openshift_ai.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_openshift_ai.json new file mode 100644 index 0000000000000..78047e915cc87 --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_openshift_ai.json @@ -0,0 +1,43 @@ +{ + "inference.put_openshift_ai": { + "documentation": { + "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-openshift-ai", + "description": "Create an OpenShift AI inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{openshiftai_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "openshiftai_inference_id": { + "type": "string", + "description": "The inference ID" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings", + "required": true + }, + "params": { + "timeout": { + "type": "time", + "description": "Specifies the amount of time to wait for the inference endpoint to be created.", + "default": "30s" + } + } + } +} From 11cec97defc29a6d88dbac174c635bff36591bba Mon Sep 17 00:00:00 2001 From: Jan Kazlouski Date: Tue, 18 Nov 2025 15:03:40 +0200 Subject: [PATCH 2/2] Update task_type field to use enum with specific options for OpenShift AI inference --- .../rest-api-spec/api/inference.put_openshift_ai.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_openshift_ai.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_openshift_ai.json index 78047e915cc87..5644e852237f4 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_openshift_ai.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_openshift_ai.json @@ -17,8 +17,14 @@ "methods": ["PUT"], "parts": { "task_type": { - "type": "string", - "description": "The task type" + "type": "enum", + "description": "The task type", + "options": [ + "rerank", + "text_embedding", + "completion", + "chat_completion" + ] }, "openshiftai_inference_id": { "type": "string",