Skip to content

Commit

Permalink
adds reasoning
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli authored Jan 2, 2025
1 parent 972bd2c commit 60f1954
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60f1954

Please sign in to comment.