diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_alibabacloud.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_alibabacloud.json new file mode 100644 index 0000000000000..b39d5abe97ca2 --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_alibabacloud.json @@ -0,0 +1,35 @@ +{ + "inference.put_alibabacloud": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-alibabacloud-ai-search.html", + "description": "Configure an AlibabaCloud AI Search inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{alibabacloud_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "alibabacloud_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +} diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_amazonbedrock.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_amazonbedrock.json new file mode 100644 index 0000000000000..266a1800a360e --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_amazonbedrock.json @@ -0,0 +1,35 @@ +{ + "inference.put_amazonbedrock": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-amazon-bedrock.html", + "description": "Configure an Amazon Bedrock inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{amazonbedrock_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "amazonbedrock_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +} diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_anthropic.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_anthropic.json new file mode 100644 index 0000000000000..dce56157c7d0e --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_anthropic.json @@ -0,0 +1,35 @@ +{ + "inference.put_anthropic": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-anthropic.html", + "description": "Configure an Anthropic inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{anthropic_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "anthropic_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +} diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_azureaistudio.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_azureaistudio.json new file mode 100644 index 0000000000000..00de83eca7ce2 --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_azureaistudio.json @@ -0,0 +1,35 @@ +{ + "inference.put_azureaistudio": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-azure-ai-studio.html", + "description": "Configure an Azure AI Studio inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{azureaistudio_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "azureaistudio_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +} diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_azureopenai.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_azureopenai.json new file mode 100644 index 0000000000000..8739adb1f5fd1 --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_azureopenai.json @@ -0,0 +1,35 @@ +{ + "inference.put_azureopenai": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-azure-openai.html", + "description": "Configure an Azure OpenAI inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{azureopenai_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "azureopenai_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +} diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_cohere.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_cohere.json new file mode 100644 index 0000000000000..a00518f2c5c9e --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_cohere.json @@ -0,0 +1,35 @@ +{ + "inference.put_cohere": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-cohere.html", + "description": "Configure a Cohere inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{cohere_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "cohere_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +} diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_elasticsearch.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_elasticsearch.json new file mode 100644 index 0000000000000..0c326b79e93b8 --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_elasticsearch.json @@ -0,0 +1,35 @@ +{ + "inference.put_elasticsearch": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-elasticsearch.html", + "description": "Configure an Elasticsearch inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{elasticsearch_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "elasticsearch_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +} diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_elser.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_elser.json new file mode 100644 index 0000000000000..e601e6c8c3bca --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_elser.json @@ -0,0 +1,39 @@ +{ + "inference.put_elser": { + "deprecated" : { + "version" : "8.16.0", + "description" : "The elser service is deprecated. Use the Elasticsearch inference integration instead, with model_id included in the service_settings." + }, + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-elser.html", + "description": "Configure an ELSER inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{elser_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "elser_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +} diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_googleaistudio.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_googleaistudio.json new file mode 100644 index 0000000000000..4574626b61c00 --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_googleaistudio.json @@ -0,0 +1,35 @@ +{ + "inference.put_googleaistudio": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-google-ai-studio.html", + "description": "Configure a Google AI Studio inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{googleaistudio_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "googleaistudio_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +} diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_googlevertexai.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_googlevertexai.json new file mode 100644 index 0000000000000..6068d4cbc91ba --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_googlevertexai.json @@ -0,0 +1,35 @@ +{ + "inference.put_googlevertexai": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-google-vertex-ai.html", + "description": "Configure a Google Vertex AI inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{googlevertexai_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "googlevertexai_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +} diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_hugging_face.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_hugging_face.json new file mode 100644 index 0000000000000..76965d61ba839 --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_hugging_face.json @@ -0,0 +1,35 @@ +{ + "inference.put_hugging_face": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-hugging-face.html", + "description": "Configure a HuggingFace inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{huggingface_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "huggingface_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +} diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_jinaai.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_jinaai.json new file mode 100644 index 0000000000000..80af2a69c9f1c --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_jinaai.json @@ -0,0 +1,35 @@ +{ + "inference.put_jinaai": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-jinaai.html", + "description": "Configure a JinaAI inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{jinaai_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "jinaai_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +}