|
15189 | 15189 | "parameters": [
|
15190 | 15190 | {
|
15191 | 15191 | "$ref": "#/components/parameters/inference.delete#inference_id"
|
| 15192 | + }, |
| 15193 | + { |
| 15194 | + "$ref": "#/components/parameters/inference.delete#dry_run" |
| 15195 | + }, |
| 15196 | + { |
| 15197 | + "$ref": "#/components/parameters/inference.delete#force" |
15192 | 15198 | }
|
15193 | 15199 | ],
|
15194 | 15200 | "responses": {
|
|
15292 | 15298 | },
|
15293 | 15299 | {
|
15294 | 15300 | "$ref": "#/components/parameters/inference.delete#inference_id"
|
| 15301 | + }, |
| 15302 | + { |
| 15303 | + "$ref": "#/components/parameters/inference.delete#dry_run" |
| 15304 | + }, |
| 15305 | + { |
| 15306 | + "$ref": "#/components/parameters/inference.delete#force" |
15295 | 15307 | }
|
15296 | 15308 | ],
|
15297 | 15309 | "responses": {
|
|
22477 | 22489 | "$ref": "#/components/schemas/_types:Id"
|
22478 | 22490 | },
|
22479 | 22491 | "style": "simple"
|
| 22492 | + }, |
| 22493 | + { |
| 22494 | + "in": "query", |
| 22495 | + "name": "number_of_allocations", |
| 22496 | + "description": "The number of model allocations on each node where the model is deployed.\nAll allocations on a node share the same copy of the model in memory but use\na separate set of threads to evaluate the model.\nIncreasing this value generally increases the throughput.\nIf this setting is greater than the number of hardware threads\nit will automatically be changed to a value less than the number of hardware threads.", |
| 22497 | + "deprecated": false, |
| 22498 | + "schema": { |
| 22499 | + "type": "number" |
| 22500 | + }, |
| 22501 | + "style": "form" |
22480 | 22502 | }
|
22481 | 22503 | ],
|
22482 | 22504 | "requestBody": {
|
|
22492 | 22514 | }
|
22493 | 22515 | }
|
22494 | 22516 | }
|
22495 |
| - }, |
22496 |
| - "required": true |
| 22517 | + } |
22497 | 22518 | },
|
22498 | 22519 | "responses": {
|
22499 | 22520 | "200": {
|
|
37373 | 37394 | "content": {
|
37374 | 37395 | "application/json": {
|
37375 | 37396 | "schema": {
|
37376 |
| - "$ref": "#/components/schemas/_types:AcknowledgedResponseBase" |
| 37397 | + "$ref": "#/components/schemas/inference._types:DeleteInferenceEndpointResult" |
37377 | 37398 | }
|
37378 | 37399 | }
|
37379 | 37400 | }
|
|
44329 | 44350 | },
|
44330 | 44351 | "style": "simple"
|
44331 | 44352 | },
|
| 44353 | + "inference.delete#dry_run": { |
| 44354 | + "in": "query", |
| 44355 | + "name": "dry_run", |
| 44356 | + "description": "When true, the endpoint is not deleted, and a list of ingest processors which reference this endpoint is returned", |
| 44357 | + "deprecated": false, |
| 44358 | + "schema": { |
| 44359 | + "type": "boolean" |
| 44360 | + }, |
| 44361 | + "style": "form" |
| 44362 | + }, |
| 44363 | + "inference.delete#force": { |
| 44364 | + "in": "query", |
| 44365 | + "name": "force", |
| 44366 | + "description": "When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields", |
| 44367 | + "deprecated": false, |
| 44368 | + "schema": { |
| 44369 | + "type": "boolean" |
| 44370 | + }, |
| 44371 | + "style": "form" |
| 44372 | + }, |
44332 | 44373 | "inference.get#task_type": {
|
44333 | 44374 | "in": "path",
|
44334 | 44375 | "name": "task_type",
|
|
50830 | 50871 | "externalDocs": {
|
50831 | 50872 | "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/run-as-privilege.html"
|
50832 | 50873 | },
|
50833 |
| - "description": "A list of users that the owners of this role can impersonate.", |
| 50874 | + "description": "A list of users that the owners of this role can impersonate. *Note*: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty `run_as` field, but a non-empty list will be rejected.", |
50834 | 50875 | "type": "array",
|
50835 | 50876 | "items": {
|
50836 | 50877 | "type": "string"
|
|
82212 | 82253 | "completion"
|
82213 | 82254 | ]
|
82214 | 82255 | },
|
| 82256 | + "inference._types:DeleteInferenceEndpointResult": { |
| 82257 | + "allOf": [ |
| 82258 | + { |
| 82259 | + "$ref": "#/components/schemas/_types:AcknowledgedResponseBase" |
| 82260 | + }, |
| 82261 | + { |
| 82262 | + "type": "object", |
| 82263 | + "properties": { |
| 82264 | + "pipelines": { |
| 82265 | + "type": "array", |
| 82266 | + "items": { |
| 82267 | + "type": "string" |
| 82268 | + } |
| 82269 | + } |
| 82270 | + }, |
| 82271 | + "required": [ |
| 82272 | + "pipelines" |
| 82273 | + ] |
| 82274 | + } |
| 82275 | + ] |
| 82276 | + }, |
82215 | 82277 | "inference._types:InferenceEndpointInfo": {
|
82216 | 82278 | "allOf": [
|
82217 | 82279 | {
|
@@ -88719,10 +88781,17 @@
|
88719 | 88781 | },
|
88720 | 88782 | "predicted_value": {
|
88721 | 88783 | "description": "If the model is trained for a text classification or zero shot classification task, the response is the\npredicted class.\nFor named entity recognition (NER) tasks, it contains the annotated text output.\nFor fill mask tasks, it contains the top prediction for replacing the mask token.\nFor text embedding tasks, it contains the raw numerical text embedding values.\nFor regression models, its a numerical value\nFor classification models, it may be an integer, double, boolean or string depending on prediction type",
|
88722 |
| - "type": "array", |
88723 |
| - "items": { |
88724 |
| - "$ref": "#/components/schemas/ml._types:PredictedValue" |
88725 |
| - } |
| 88784 | + "oneOf": [ |
| 88785 | + { |
| 88786 | + "$ref": "#/components/schemas/ml._types:PredictedValue" |
| 88787 | + }, |
| 88788 | + { |
| 88789 | + "type": "array", |
| 88790 | + "items": { |
| 88791 | + "$ref": "#/components/schemas/ml._types:PredictedValue" |
| 88792 | + } |
| 88793 | + } |
| 88794 | + ] |
88726 | 88795 | },
|
88727 | 88796 | "predicted_value_sequence": {
|
88728 | 88797 | "description": "For fill mask tasks, the response contains the input text sequence with the mask token replaced by the predicted\nvalue.\nAdditionally",
|
|
0 commit comments