-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add more inference API REST specifications #125187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
63ab113
Add more inference API REST specifications
lcawl b105d31
Reset changes to inference.put.json
lcawl f9aab79
Merge branch 'main' into inference-apis
lcawl 474bbbc
Fix path parameter names
lcawl 895f079
Fix elasticsearch inference API parameter
lcawl ac800cb
Add deprecation notice in inference-put_elser.json
lcawl 8f52831
Merge branch 'main' into inference-apis
lcawl 04ae22f
Merge branch 'main' into inference-apis
lcawl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_alibabacloud.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } |
35 changes: 35 additions & 0 deletions
35
rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_amazonbedrock.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } |
35 changes: 35 additions & 0 deletions
35
rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_anthropic.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } |
35 changes: 35 additions & 0 deletions
35
rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_azureaistudio.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } |
35 changes: 35 additions & 0 deletions
35
rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_azureopenai.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } |
35 changes: 35 additions & 0 deletions
35
rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_cohere.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } |
35 changes: 35 additions & 0 deletions
35
rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_elasticsearch.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } |
35 changes: 35 additions & 0 deletions
35
rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_elser.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| { | ||
| "inference.put_elser": { | ||
| "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" | ||
| } | ||
| } | ||
| } | ||
35 changes: 35 additions & 0 deletions
35
rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_googleaistudio.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } |
35 changes: 35 additions & 0 deletions
35
rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_googlevertexai.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } |
35 changes: 35 additions & 0 deletions
35
rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_hugging_face.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.