From 06d2d573bd678b24a7b0fea30ac73faa5bfbb14d Mon Sep 17 00:00:00 2001 From: Tadayoshi Sato Date: Tue, 17 Sep 2024 04:29:45 +0900 Subject: [PATCH] Fix typo: "a asynchronous" -> "an asynchronous" (#3314) Co-authored-by: Matthias Reso <13337103+mreso@users.noreply.github.com> Co-authored-by: Ankith Gunapal --- .../java/org/pytorch/serve/openapi/OpenApiUtils.java | 10 +++++----- .../server/src/main/resources/proto/management.proto | 6 +++--- .../server/src/test/resources/management_open_api.json | 6 +++--- .../src/test/resources/model_management_api.json | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/frontend/server/src/main/java/org/pytorch/serve/openapi/OpenApiUtils.java b/frontend/server/src/main/java/org/pytorch/serve/openapi/OpenApiUtils.java index 0dd4fe81b0..5d216f0465 100644 --- a/frontend/server/src/main/java/org/pytorch/serve/openapi/OpenApiUtils.java +++ b/frontend/server/src/main/java/org/pytorch/serve/openapi/OpenApiUtils.java @@ -350,8 +350,8 @@ private static Operation getUnRegisterOperation(boolean version) { operationId = "version_unregisterModel"; } else { operationDescription = - "Unregister the default version of a model from TorchServe if it is the only version available." - + "This is a asynchronous call by default. Caller can call listModels to confirm model is unregistered"; + "Unregister the default version of a model from TorchServe if it is the only version available. " + + "This is an asynchronous call by default. Caller can call listModels to confirm model is unregistered."; operationId = "unregisterModel"; } Operation operation = new Operation(operationId, operationDescription); @@ -482,12 +482,12 @@ private static Operation getScaleOperation(boolean version) { if (version) { operationDescription = "Configure number of workers for a specified version of a model. " - + "This is a asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed."; + + "This is an asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed."; operationId = "version_setAutoScale"; } else { operationDescription = - "Configure number of workers for a default version of a model." - + "This is a asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed."; + "Configure number of workers for a default version of a model. " + + "This is an asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed."; operationId = "setAutoScale"; } diff --git a/frontend/server/src/main/resources/proto/management.proto b/frontend/server/src/main/resources/proto/management.proto index 0d53258565..8a491bbe96 100644 --- a/frontend/server/src/main/resources/proto/management.proto +++ b/frontend/server/src/main/resources/proto/management.proto @@ -111,12 +111,12 @@ service ManagementAPIsService { // Register a new model in TorchServe. rpc RegisterModel(RegisterModelRequest) returns (ManagementResponse) {} - // Configure number of workers for a default version of a model.This is a asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed. + // Configure number of workers for a default version of a model. This is an asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed. rpc ScaleWorker(ScaleWorkerRequest) returns (ManagementResponse) {} // Set default version of a model rpc SetDefault(SetDefaultRequest) returns (ManagementResponse) {} - // Unregister the default version of a model from TorchServe if it is the only version available.This is a asynchronous call by default. Caller can call listModels to confirm model is unregistered + // Unregister the default version of a model from TorchServe if it is the only version available. This is an asynchronous call by default. Caller can call listModels to confirm model is unregistered. rpc UnregisterModel(UnregisterModelRequest) returns (ManagementResponse) {} -} \ No newline at end of file +} diff --git a/frontend/server/src/test/resources/management_open_api.json b/frontend/server/src/test/resources/management_open_api.json index 315abf0095..352cc1bd83 100644 --- a/frontend/server/src/test/resources/management_open_api.json +++ b/frontend/server/src/test/resources/management_open_api.json @@ -666,7 +666,7 @@ } }, "put": { - "description": "Configure number of workers for a default version of a model.This is a asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.", + "description": "Configure number of workers for a default version of a model. This is an asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.", "operationId": "setAutoScale", "parameters": [ { @@ -877,7 +877,7 @@ } }, "delete": { - "description": "Unregister the default version of a model from TorchServe if it is the only version available.This is a asynchronous call by default. Caller can call listModels to confirm model is unregistered", + "description": "Unregister the default version of a model from TorchServe if it is the only version available. This is an asynchronous call by default. Caller can call listModels to confirm model is unregistered.", "operationId": "unregisterModel", "parameters": [ { @@ -1254,7 +1254,7 @@ } }, "put": { - "description": "Configure number of workers for a specified version of a model. This is a asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.", + "description": "Configure number of workers for a specified version of a model. This is an asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.", "operationId": "version_setAutoScale", "parameters": [ { diff --git a/frontend/server/src/test/resources/model_management_api.json b/frontend/server/src/test/resources/model_management_api.json index f056c7aad7..9ca6badc69 100644 --- a/frontend/server/src/test/resources/model_management_api.json +++ b/frontend/server/src/test/resources/model_management_api.json @@ -211,7 +211,7 @@ } }, "put": { - "description": "Configure number of workers for a default version of a model.This is a asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.", + "description": "Configure number of workers for a default version of a model. This is an asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.", "operationId": "setAutoScale", "parameters": [ { @@ -422,7 +422,7 @@ } }, "delete": { - "description": "Unregister the default version of a model from TorchServe if it is the only version available.This is a asynchronous call by default. Caller can call listModels to confirm model is unregistered", + "description": "Unregister the default version of a model from TorchServe if it is the only version available. This is an asynchronous call by default. Caller can call listModels to confirm model is unregistered.", "operationId": "unregisterModel", "parameters": [ { @@ -799,7 +799,7 @@ } }, "put": { - "description": "Configure number of workers for a specified version of a model. This is a asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.", + "description": "Configure number of workers for a specified version of a model. This is an asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.", "operationId": "version_setAutoScale", "parameters": [ {