docs: update type of `version` in model register (#5907)

* docs: update type of `version` in model register

Signed-off-by: Drew Edwards <github@drew.contact>

* Apply suggestions from code review

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Signed-off-by: Drew Edwards <github@drew.contact>

---------

Signed-off-by: Drew Edwards <github@drew.contact>
Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
This commit is contained in:
Drew Edwards 2023-12-18 17:09:27 +00:00 committed by GitHub
parent 05df3b5d5d
commit 6039eb5771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ The following table lists the available request fields.
Field | Data type | Required/Optional | Description
:--- | :--- | :---
`name`| String | Required | The model name. |
`version` | Integer | Required | The model version number. |
`version` | String | Required | The model version. |
`model_format` | String | Required | The portable format of the model file. Valid values are `TORCH_SCRIPT` and `ONNX`. |
`description` | String | Optional| The model description. |
`model_group_id` | String | Optional | The model group ID of the model group to register this model to.
@ -75,7 +75,7 @@ The following table lists the available request fields.
Field | Data type | Required/Optional | Description
:--- | :--- | :---
`name`| String | Required | The model name. |
`version` | Integer | Required | The model version number. |
`version` | String | Required | The model version. |
`model_format` | String | Required | The portable format of the model file. Valid values are `TORCH_SCRIPT` and `ONNX`. |
`function_name` | String | Required | Set this parameter to `SPARSE_ENCODING` or `SPARSE_TOKENIZE`.
`model_content_hash_value` | String | Required | The model content hash generated using the SHA-256 hashing algorithm.
@ -111,7 +111,7 @@ The following table lists the available request fields.
Field | Data type | Required/Optional | Description
:--- | :--- | :---
`name`| String | Required | The model name. |
`version` | Integer | Required | The model version number. |
`version` | String | Required | The model version. |
`model_format` | String | Required | The portable format of the model file. Valid values are `TORCH_SCRIPT` and `ONNX`. |
`function_name` | String | Required | Set this parameter to `SPARSE_ENCODING` or `SPARSE_TOKENIZE`.
`model_content_hash_value` | String | Required | The model content hash generated using the SHA-256 hashing algorithm.