Skip to content

Commit 06d2d57

Browse files
tadayosimresoagunapal
authored
Fix typo: "a asynchronous" -> "an asynchronous" (#3314)
Co-authored-by: Matthias Reso <[email protected]> Co-authored-by: Ankith Gunapal <[email protected]>
1 parent c698fe0 commit 06d2d57

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

frontend/server/src/main/java/org/pytorch/serve/openapi/OpenApiUtils.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ private static Operation getUnRegisterOperation(boolean version) {
350350
operationId = "version_unregisterModel";
351351
} else {
352352
operationDescription =
353-
"Unregister the default version of a model from TorchServe if it is the only version available."
354-
+ "This is a asynchronous call by default. Caller can call listModels to confirm model is unregistered";
353+
"Unregister the default version of a model from TorchServe if it is the only version available. "
354+
+ "This is an asynchronous call by default. Caller can call listModels to confirm model is unregistered.";
355355
operationId = "unregisterModel";
356356
}
357357
Operation operation = new Operation(operationId, operationDescription);
@@ -482,12 +482,12 @@ private static Operation getScaleOperation(boolean version) {
482482
if (version) {
483483
operationDescription =
484484
"Configure number of workers for a specified version of a model. "
485-
+ "This is a asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.";
485+
+ "This is an asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.";
486486
operationId = "version_setAutoScale";
487487
} else {
488488
operationDescription =
489-
"Configure number of workers for a default version of a model."
490-
+ "This is a asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.";
489+
"Configure number of workers for a default version of a model. "
490+
+ "This is an asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.";
491491
operationId = "setAutoScale";
492492
}
493493

frontend/server/src/main/resources/proto/management.proto

+3-3
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ service ManagementAPIsService {
111111
// Register a new model in TorchServe.
112112
rpc RegisterModel(RegisterModelRequest) returns (ManagementResponse) {}
113113

114-
// 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.
114+
// 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.
115115
rpc ScaleWorker(ScaleWorkerRequest) returns (ManagementResponse) {}
116116

117117
// Set default version of a model
118118
rpc SetDefault(SetDefaultRequest) returns (ManagementResponse) {}
119119

120-
// 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
120+
// 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.
121121
rpc UnregisterModel(UnregisterModelRequest) returns (ManagementResponse) {}
122-
}
122+
}

frontend/server/src/test/resources/management_open_api.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@
666666
}
667667
},
668668
"put": {
669-
"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.",
669+
"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.",
670670
"operationId": "setAutoScale",
671671
"parameters": [
672672
{
@@ -877,7 +877,7 @@
877877
}
878878
},
879879
"delete": {
880-
"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",
880+
"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.",
881881
"operationId": "unregisterModel",
882882
"parameters": [
883883
{
@@ -1254,7 +1254,7 @@
12541254
}
12551255
},
12561256
"put": {
1257-
"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.",
1257+
"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.",
12581258
"operationId": "version_setAutoScale",
12591259
"parameters": [
12601260
{

frontend/server/src/test/resources/model_management_api.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
}
212212
},
213213
"put": {
214-
"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.",
214+
"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.",
215215
"operationId": "setAutoScale",
216216
"parameters": [
217217
{
@@ -422,7 +422,7 @@
422422
}
423423
},
424424
"delete": {
425-
"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",
425+
"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.",
426426
"operationId": "unregisterModel",
427427
"parameters": [
428428
{
@@ -799,7 +799,7 @@
799799
}
800800
},
801801
"put": {
802-
"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.",
802+
"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.",
803803
"operationId": "version_setAutoScale",
804804
"parameters": [
805805
{

0 commit comments

Comments
 (0)