Skip to content

Commit

Permalink
[ML] Adding timeout field (#2501)
Browse files Browse the repository at this point in the history
* Adding timeout field

* fixing formatting
  • Loading branch information
jonathan-buttner authored Apr 11, 2024
1 parent 09e00d5 commit b14d22e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
18 changes: 16 additions & 2 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions specification/inference/inference/InferenceRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* under the License.
*/

import { Duration } from '@_types/Time'
import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { TaskType } from '@inference/_types/TaskType'
Expand All @@ -39,6 +40,13 @@ export interface Request extends RequestBase {
*/
inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference request to complete.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* Query input, required for rerank task.
Expand Down

0 comments on commit b14d22e

Please sign in to comment.