File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/schemacrawler/tools/command/aichat/utility/lanchain4j Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -93,13 +93,13 @@ public EmbeddingModel newEmbeddingModel() {
9393 @ Override
9494 public Response <List <Embedding >> embedAll (final List <TextSegment > textSegments ) {
9595 if (textSegments == null || textSegments .isEmpty ()) {
96- return new Response (Collections .emptyList ());
96+ return new Response <> (Collections .emptyList ());
9797 }
9898
9999 final Embedding embedding = new Embedding (new float [] {0f });
100100 final Embedding [] embeddings = new Embedding [textSegments .size ()];
101101 Arrays .fill (embeddings , embedding );
102- return new Response (Arrays .asList (embeddings ));
102+ return new Response <> (Arrays .asList (embeddings ));
103103 }
104104 };
105105 }
You can’t perform that action at this time.
0 commit comments