Skip to content

Commit a54d6d2

Browse files
authored
[9.1] rest-api-spec: add missing timeout to Inference APIs (elastic#137563) (elastic#137605)
1 parent db14dff commit a54d6d2

26 files changed

+182
-0
lines changed

rest-api-spec/src/main/resources/rest-api-spec/api/inference.chat_completion_unified.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@
3232
},
3333
"body": {
3434
"description": "The inference payload"
35+
},
36+
"params": {
37+
"timeout": {
38+
"type": "time",
39+
"description": "Specifies the amount of time to wait for the inference request to complete.",
40+
"default": "30s"
41+
}
3542
}
3643
}
3744
}

rest-api-spec/src/main/resources/rest-api-spec/api/inference.completion.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@
3232
},
3333
"body": {
3434
"description": "The inference payload"
35+
},
36+
"params": {
37+
"timeout": {
38+
"type": "time",
39+
"description": "Specifies the amount of time to wait for the inference request to complete.",
40+
"default": "30s"
41+
}
3542
}
3643
}
3744
}

rest-api-spec/src/main/resources/rest-api-spec/api/inference.inference.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@
4848
},
4949
"body": {
5050
"description": "The inference payload"
51+
},
52+
"params": {
53+
"timeout": {
54+
"type": "time",
55+
"description": "The amount of time to wait for the inference request to complete.",
56+
"default": "30s"
57+
}
5158
}
5259
}
5360
}

rest-api-spec/src/main/resources/rest-api-spec/api/inference.put.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@
4848
},
4949
"body": {
5050
"description": "The inference endpoint's task and service settings"
51+
},
52+
"params": {
53+
"timeout": {
54+
"type": "time",
55+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
56+
"default": "30s"
57+
}
5158
}
5259
}
5360
}

rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_alibabacloud.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
},
3737
"body": {
3838
"description": "The inference endpoint's task and service settings"
39+
},
40+
"params": {
41+
"timeout": {
42+
"type": "time",
43+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
44+
"default": "30s"
45+
}
3946
}
4047
}
4148
}

rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_amazonbedrock.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
},
3737
"body": {
3838
"description": "The inference endpoint's task and service settings"
39+
},
40+
"params": {
41+
"timeout": {
42+
"type": "time",
43+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
44+
"default": "30s"
45+
}
3946
}
4047
}
4148
}

rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_amazonsagemaker.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
},
3737
"body": {
3838
"description": "The inference endpoint's task and service settings"
39+
},
40+
"params": {
41+
"timeout": {
42+
"type": "time",
43+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
44+
"default": "30s"
45+
}
3946
}
4047
}
4148
}

rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_anthropic.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
},
3737
"body": {
3838
"description": "The inference endpoint's task and service settings"
39+
},
40+
"params": {
41+
"timeout": {
42+
"type": "time",
43+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
44+
"default": "30s"
45+
}
3946
}
4047
}
4148
}

rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_azureaistudio.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
},
3737
"body": {
3838
"description": "The inference endpoint's task and service settings"
39+
},
40+
"params": {
41+
"timeout": {
42+
"type": "time",
43+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
44+
"default": "30s"
45+
}
3946
}
4047
}
4148
}

rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_azureopenai.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
},
3737
"body": {
3838
"description": "The inference endpoint's task and service settings"
39+
},
40+
"params": {
41+
"timeout": {
42+
"type": "time",
43+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
44+
"default": "30s"
45+
}
3946
}
4047
}
4148
}

0 commit comments

Comments
 (0)