Skip to content

Commit c7e4568

Browse files
committed
[API] Adds timeout to inference PUT endpoints
1 parent 13763ae commit c7e4568

18 files changed

+18
-0
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ module Actions
4646
#
4747
# @option arguments [String] :task_type The task type. Refer to the integration list in the API description for the available task types.
4848
# @option arguments [String] :inference_id The inference Id (*Required*)
49+
# @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s.
4950
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
5051
# when they occur.
5152
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response

elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module Actions
2727
#
2828
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
2929
# @option arguments [String] :alibabacloud_inference_id The unique identifier of the inference endpoint. (*Required*)
30+
# @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s.
3031
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
3132
# when they occur.
3233
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response

elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module Actions
2727
#
2828
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
2929
# @option arguments [String] :amazonbedrock_inference_id The unique identifier of the inference endpoint. (*Required*)
30+
# @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s.
3031
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
3132
# when they occur.
3233
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response

elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module Actions
2828
# @option arguments [String] :task_type The task type.
2929
# The only valid task type for the model to perform is `completion`. (*Required*)
3030
# @option arguments [String] :anthropic_inference_id The unique identifier of the inference endpoint. (*Required*)
31+
# @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s.
3132
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
3233
# when they occur.
3334
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response

elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module Actions
2727
#
2828
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
2929
# @option arguments [String] :azureaistudio_inference_id The unique identifier of the inference endpoint. (*Required*)
30+
# @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s.
3031
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
3132
# when they occur.
3233
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response

elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module Actions
3232
# @option arguments [String] :task_type The type of the inference task that the model will perform.
3333
# NOTE: The `chat_completion` task type only supports streaming and only through the _stream API. (*Required*)
3434
# @option arguments [String] :azureopenai_inference_id The unique identifier of the inference endpoint. (*Required*)
35+
# @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s.
3536
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
3637
# when they occur.
3738
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response

elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module Actions
2727
#
2828
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
2929
# @option arguments [String] :cohere_inference_id The unique identifier of the inference endpoint. (*Required*)
30+
# @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s.
3031
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
3132
# when they occur.
3233
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response

elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module Actions
2828
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
2929
# @option arguments [String] :elasticsearch_inference_id The unique identifier of the inference endpoint.
3030
# The must not match the `model_id`. (*Required*)
31+
# @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s.
3132
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
3233
# when they occur.
3334
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response

elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module Actions
2828
#
2929
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
3030
# @option arguments [String] :elser_inference_id The unique identifier of the inference endpoint. (*Required*)
31+
# @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s.
3132
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
3233
# when they occur.
3334
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response

elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module Actions
2727
#
2828
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
2929
# @option arguments [String] :googleaistudio_inference_id The unique identifier of the inference endpoint. (*Required*)
30+
# @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s.
3031
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
3132
# when they occur.
3233
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response

0 commit comments

Comments
 (0)