diff --git a/chatmodel-springai/src/test/java/com/example/ai/controller/ChatControllerTest.java b/chatmodel-springai/src/test/java/com/example/ai/controller/ChatControllerTest.java index 87410e6..caf3166 100644 --- a/chatmodel-springai/src/test/java/com/example/ai/controller/ChatControllerTest.java +++ b/chatmodel-springai/src/test/java/com/example/ai/controller/ChatControllerTest.java @@ -91,11 +91,11 @@ void embeddingClientConversion() { .jsonPath() .get("answer"); - double[] floatArray = Arrays.stream(response.replaceAll("[\\[\\]]", "").split(",")) + double[] doubles = Arrays.stream(response.replaceAll("[\\[\\]]", "").split(",")) .mapToDouble(Double::parseDouble) .toArray(); - assertThat(floatArray.length).isEqualTo(1536); + assertThat(doubles.length).isEqualTo(1536).as("Dimensions for openai model is 1536"); } @Test