Skip to content

Commit b14d22e

Browse files
[ML] Adding timeout field (#2501)
* Adding timeout field * fixing formatting
1 parent 09e00d5 commit b14d22e

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

output/schema/schema.json

Lines changed: 16 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/inference/inference/InferenceRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919

20+
import { Duration } from '@_types/Time'
2021
import { RequestBase } from '@_types/Base'
2122
import { Id } from '@_types/common'
2223
import { TaskType } from '@inference/_types/TaskType'
@@ -39,6 +40,13 @@ export interface Request extends RequestBase {
3940
*/
4041
inference_id: Id
4142
}
43+
query_parameters: {
44+
/**
45+
* Specifies the amount of time to wait for the inference request to complete.
46+
* @server_default 30s
47+
*/
48+
timeout?: Duration
49+
}
4250
body: {
4351
/**
4452
* Query input, required for rerank task.

0 commit comments

Comments
 (0)