Skip to content

Commit 6e8c9af

Browse files
committed
Switch from Array<string> to string[] in inference
1 parent 10d6d66 commit 6e8c9af

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

specification/inference/completion/CompletionRequest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ export interface Request extends RequestBase {
6060
* Inference input.
6161
* Either a string or an array of strings.
6262
*/
63-
// eslint-disable-next-line es-spec-validator/no-inline-unions -- TODO: create named alias
64-
input: string | Array<string>
63+
input: string | string[]
6564
/**
6665
* Task settings for the individual inference request. These settings are specific to the <task_type> you specified and override the task settings specified when initializing the service.
6766
*/

specification/inference/inference/InferenceRequest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ export interface Request extends RequestBase {
8181
* > info
8282
* > Inference endpoints for the `completion` task type currently only support a single string as input.
8383
*/
84-
// eslint-disable-next-line es-spec-validator/no-inline-unions -- TODO: create named alias
85-
input: string | Array<string>
84+
input: string | string[]
8685
/**
8786
* Specifies the input data type for the text embedding model. The `input_type` parameter only applies to Inference Endpoints with the `text_embedding` task type. Possible values include:
8887
* * `SEARCH`

specification/inference/sparse_embedding/SparseEmbeddingRequest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ export interface Request extends RequestBase {
5454
* Inference input.
5555
* Either a string or an array of strings.
5656
*/
57-
// eslint-disable-next-line es-spec-validator/no-inline-unions -- TODO: create named alias
58-
input: string | Array<string>
57+
input: string | string[]
5958
/**
6059
* Task settings for the individual inference request. These settings are specific to the <task_type> you specified and override the task settings specified when initializing the service.
6160
*/

specification/inference/text_embedding/TextEmbeddingRequest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ export interface Request extends RequestBase {
5454
* Inference input.
5555
* Either a string or an array of strings.
5656
*/
57-
// eslint-disable-next-line es-spec-validator/no-inline-unions -- TODO: create named alias
58-
input: string | Array<string>
57+
input: string | string[]
5958
/**
6059
* The input data type for the text embedding model. Possible values include:
6160
* * `SEARCH`

0 commit comments

Comments
 (0)