You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c72be9c
Browse filesBrowse the repository at this point in the historyBrowse files
* Get recovery points. Get recovery points from the platform-managed data recovery repository. This API is intended for internal operator use. Recovery points are returned in descending order by end time. Repository, snapshot, and policy identifiers are not exposed.
Copy file name to clipboardExpand all lines: src/api/api/esql.ts
+67Lines changed: 67 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -211,6 +211,14 @@ export default class Esql {
211
211
'drop_null_columns',
212
212
'allow_partial_results'
213
213
]
214
+
},
215
+
'esql.test_data_source_connection': {
216
+
path: [],
217
+
body: [
218
+
'type',
219
+
'settings'
220
+
],
221
+
query: []
214
222
}
215
223
}
216
224
}
@@ -1090,4 +1098,63 @@ export default class Esql {
1090
1098
}
1091
1099
returnawaitthis.transport.request({ path, method, querystring, body, meta },options)
1092
1100
}
1101
+
1102
+
/**
1103
+
* Test an ES|QL data source connection. Tests whether the supplied data source configuration can establish a live connection. The data source does not need to exist in cluster state: this endpoint is intended for validating a new configuration before saving it. The request body accepts the same `type` and `settings` fields as the create or update data source API.
1104
+
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-esql-data-source-test-connection | Elasticsearch API documentation}
Copy file name to clipboardExpand all lines: src/api/api/inference.ts
+64-1Lines changed: 64 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,17 @@ export default class Inference {
109
109
'timeout'
110
110
]
111
111
},
112
+
'inference.non_streaming_chat_completion': {
113
+
path: [
114
+
'inference_id'
115
+
],
116
+
body: [
117
+
'chat_completion_request'
118
+
],
119
+
query: [
120
+
'timeout'
121
+
]
122
+
},
112
123
'inference.put': {
113
124
path: [
114
125
'task_type',
@@ -573,7 +584,7 @@ export default class Inference {
573
584
}
574
585
575
586
/**
576
-
* Perform chat completion inference on the service. The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. It only works with the `chat_completion` task type. NOTE: The `chat_completion` task type is only available within the _stream API and only supports streaming. The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. To determine whether a given inference service supports this task type, please see the page for that service.
587
+
* Perform streaming chat completion inference on the service. The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. It only works with the `chat_completion` task type. NOTE: The `chat_completion` task type supports both streaming and non-streaming. The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. To determine whether a given inference service supports this task type, please see the page for that service.
577
588
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-unified-inference | Elasticsearch API documentation}
@@ -1027,6 +1038,58 @@ export default class Inference {
1027
1038
returnawaitthis.transport.request({ path, method, querystring, body, meta },options)
1028
1039
}
1029
1040
1041
+
/**
1042
+
* Perform non-streaming chat completion inference on the service. The chat completion inference API enables rich responses for chat completion tasks. It only works with the `chat_completion` task type. NOTE: The `chat_completion` task type supports both streaming and non-streaming. The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. To determine whether a given inference service supports this task type, please see the page for that service. These services support non-streaming chat completion inference: - AI21 - Azure OpenAI - Deepseek - Elastic - FireworksAI - Groq - Huggingface - IBMWatsonX - Llama - Mistral - NVIDIA - OpenAI - OpenShiftAI
1043
+
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-non-streaming-chat-completion | Elasticsearch API documentation}
returnawaitthis.transport.request({ path, method, querystring, body, meta },options)
1091
+
}
1092
+
1030
1093
/**
1031
1094
* Create an inference endpoint. IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. The following integrations are available through the inference API. You can find the available task types next to the integration name: * AI21 (`chat_completion`, `completion`) * AlibabaCloud AI Search (`completion`, `rerank`, `sparse_embedding`, `text_embedding`) * Amazon Bedrock (`chat_completion`, `completion`, `text_embedding`) * Amazon SageMaker (`chat_completion`, `completion`, `rerank`, `sparse_embedding`, `text_embedding`) * Anthropic (`chat_completion`, `completion`) * Azure AI Studio (`completion`, `rerank`, `text_embedding`) * Azure OpenAI (`chat_completion`, `completion`, `text_embedding`) * Cohere (`completion`, `rerank`, `text_embedding`) * DeepSeek (`chat_completion`, `completion`) * Elasticsearch (`rerank`, `sparse_embedding`, `text_embedding` - this service is for built-in models and models uploaded through Eland) * ELSER (`sparse_embedding`) * Fireworks AI (`chat_completion`, `completion`, `text_embedding`) * Google AI Studio (`completion`, `text_embedding`) * Google Vertex AI (`chat_completion`, `completion`, `rerank`, `text_embedding`) * Groq (`chat_completion`) * Hugging Face (`chat_completion`, `completion`, `rerank`, `text_embedding`) * JinaAI (`embedding`, `rerank`, `text_embedding`) * Llama (`chat_completion`, `completion`, `text_embedding`) * Mistral (`chat_completion`, `completion`, `text_embedding`) * Nvidia (`chat_completion`, `completion`, `text_embedding`, `rerank`) * OpenAI (`chat_completion`, `completion`, `text_embedding`) * OpenShift AI (`chat_completion`, `completion`, `rerank`, `text_embedding`) * VoyageAI (`rerank`, `text_embedding`) * Watsonx (`chat_completion`, `completion`, `rerank`, `text_embedding`)
1032
1095
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put | Elasticsearch API documentation}
0 commit comments