From 6039eb5771a0416450d8ab052995c05961bcb125 Mon Sep 17 00:00:00 2001 From: Drew Edwards Date: Mon, 18 Dec 2023 17:09:27 +0000 Subject: [PATCH] docs: update type of `version` in model register (#5907) * docs: update type of `version` in model register Signed-off-by: Drew Edwards * Apply suggestions from code review Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Signed-off-by: Drew Edwards --------- Signed-off-by: Drew Edwards Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> --- _ml-commons-plugin/api/model-apis/register-model.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_ml-commons-plugin/api/model-apis/register-model.md b/_ml-commons-plugin/api/model-apis/register-model.md index 31c01c62..fbfe3c0f 100644 --- a/_ml-commons-plugin/api/model-apis/register-model.md +++ b/_ml-commons-plugin/api/model-apis/register-model.md @@ -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.