From 4ea125620e00945ef0e97f03a5ff011021d807b7 Mon Sep 17 00:00:00 2001 From: Tadayoshi Sato Date: Wed, 18 Sep 2024 15:03:53 +0900 Subject: [PATCH] Fix typo: vesion -> version, succsesfully -> successfully --- examples/large_models/utils/test_llm_streaming_response.py | 2 +- .../src/main/java/org/pytorch/serve/openapi/OpenApiUtils.java | 2 +- .../server/src/main/java/org/pytorch/serve/util/ApiUtils.java | 2 +- .../server/src/test/java/org/pytorch/serve/ModelServerTest.java | 2 +- frontend/server/src/test/resources/management_open_api.json | 2 +- frontend/server/src/test/resources/model_management_api.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/large_models/utils/test_llm_streaming_response.py b/examples/large_models/utils/test_llm_streaming_response.py index 55f9129bc3..94e6b373e5 100644 --- a/examples/large_models/utils/test_llm_streaming_response.py +++ b/examples/large_models/utils/test_llm_streaming_response.py @@ -196,7 +196,7 @@ def parse_args(): "--model-version", type=str, default="1.0", - help="Model vesion. Default: 1.0", + help="Model version. Default: 1.0", ) return parser.parse_args() 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 5d216f0465..f307188647 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 @@ -203,7 +203,7 @@ private static Operation getSetDefaultOperation() { MediaType error = getErrorResponse(); operation.addResponse( - new Response("200", "Default vesion succsesfully updated for model", status)); + new Response("200", "Default version successfully updated for model", status)); operation.addResponse( new Response("404", "Model not found or Model version not found", error)); operation.addResponse(new Response("500", "Internal Server Error", error)); diff --git a/frontend/server/src/main/java/org/pytorch/serve/util/ApiUtils.java b/frontend/server/src/main/java/org/pytorch/serve/util/ApiUtils.java index 46c476affd..70f5a1c644 100644 --- a/frontend/server/src/main/java/org/pytorch/serve/util/ApiUtils.java +++ b/frontend/server/src/main/java/org/pytorch/serve/util/ApiUtils.java @@ -98,7 +98,7 @@ public static String setDefault(String modelName, String newModelVersion) ModelManager modelManager = ModelManager.getInstance(); modelManager.setDefaultVersion(modelName, newModelVersion); String msg = - "Default vesion succsesfully updated for model \"" + "Default version successfully updated for model \"" + modelName + "\" to \"" + newModelVersion diff --git a/frontend/server/src/test/java/org/pytorch/serve/ModelServerTest.java b/frontend/server/src/test/java/org/pytorch/serve/ModelServerTest.java index 518143ec04..f419a26657 100644 --- a/frontend/server/src/test/java/org/pytorch/serve/ModelServerTest.java +++ b/frontend/server/src/test/java/org/pytorch/serve/ModelServerTest.java @@ -429,7 +429,7 @@ public void testSetDefaultVersionNoop() throws InterruptedException { StatusResponse resp = JsonUtils.GSON.fromJson(TestUtils.getResult(), StatusResponse.class); Assert.assertEquals( resp.getStatus(), - "Default vesion succsesfully updated for model \"noopversioned\" to \"1.2.1\""); + "Default version successfully updated for model \"noopversioned\" to \"1.2.1\""); } @Test( diff --git a/frontend/server/src/test/resources/management_open_api.json b/frontend/server/src/test/resources/management_open_api.json index 352cc1bd83..4e926297a1 100644 --- a/frontend/server/src/test/resources/management_open_api.json +++ b/frontend/server/src/test/resources/management_open_api.json @@ -1671,7 +1671,7 @@ ], "responses": { "200": { - "description": "Default vesion succsesfully updated for model", + "description": "Default version successfully updated for model", "content": { "application/json": { "schema": { diff --git a/frontend/server/src/test/resources/model_management_api.json b/frontend/server/src/test/resources/model_management_api.json index 9ca6badc69..93cb7bae6b 100644 --- a/frontend/server/src/test/resources/model_management_api.json +++ b/frontend/server/src/test/resources/model_management_api.json @@ -1216,7 +1216,7 @@ ], "responses": { "200": { - "description": "Default vesion succsesfully updated for model", + "description": "Default version successfully updated for model", "content": { "application/json": { "schema": {