Skip to content

Commit 5f20603

Browse files
authored
rest-api-spec: add missing timeout to Inference APIs (#137563)
1 parent f7617d3 commit 5f20603

29 files changed

+203
-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
@@ -33,6 +33,13 @@
3333
"body": {
3434
"description": "The inference payload",
3535
"required": true
36+
},
37+
"params": {
38+
"timeout": {
39+
"type": "time",
40+
"description": "Specifies the amount of time to wait for the inference request to complete.",
41+
"default": "30s"
42+
}
3643
}
3744
}
3845
}

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
@@ -33,6 +33,13 @@
3333
"body": {
3434
"description": "The inference payload",
3535
"required": true
36+
},
37+
"params": {
38+
"timeout": {
39+
"type": "time",
40+
"description": "Specifies the amount of time to wait for the inference request to complete.",
41+
"default": "30s"
42+
}
3643
}
3744
}
3845
}

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
@@ -49,6 +49,13 @@
4949
"body": {
5050
"description": "The inference payload",
5151
"required": true
52+
},
53+
"params": {
54+
"timeout": {
55+
"type": "time",
56+
"description": "The amount of time to wait for the inference request to complete.",
57+
"default": "30s"
58+
}
5259
}
5360
}
5461
}

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
@@ -49,6 +49,13 @@
4949
"body": {
5050
"description": "The inference endpoint's task and service settings",
5151
"required": true
52+
},
53+
"params": {
54+
"timeout": {
55+
"type": "time",
56+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
57+
"default": "30s"
58+
}
5259
}
5360
}
5461
}

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

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

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
@@ -37,6 +37,13 @@
3737
"body": {
3838
"description": "The inference endpoint's task and service settings",
3939
"required": true
40+
},
41+
"params": {
42+
"timeout": {
43+
"type": "time",
44+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
45+
"default": "30s"
46+
}
4047
}
4148
}
4249
}

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
@@ -37,6 +37,13 @@
3737
"body": {
3838
"description": "The inference endpoint's task and service settings",
3939
"required": true
40+
},
41+
"params": {
42+
"timeout": {
43+
"type": "time",
44+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
45+
"default": "30s"
46+
}
4047
}
4148
}
4249
}

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
@@ -37,6 +37,13 @@
3737
"body": {
3838
"description": "The inference endpoint's task and service settings",
3939
"required": true
40+
},
41+
"params": {
42+
"timeout": {
43+
"type": "time",
44+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
45+
"default": "30s"
46+
}
4047
}
4148
}
4249
}

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
@@ -37,6 +37,13 @@
3737
"body": {
3838
"description": "The inference endpoint's task and service settings",
3939
"required": true
40+
},
41+
"params": {
42+
"timeout": {
43+
"type": "time",
44+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
45+
"default": "30s"
46+
}
4047
}
4148
}
4249
}

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
@@ -37,6 +37,13 @@
3737
"body": {
3838
"description": "The inference endpoint's task and service settings",
3939
"required": true
40+
},
41+
"params": {
42+
"timeout": {
43+
"type": "time",
44+
"description": "Specifies the amount of time to wait for the inference endpoint to be created.",
45+
"default": "30s"
46+
}
4047
}
4148
}
4249
}

0 commit comments

Comments
 (0)