Skip to content

Commit 501a2c8

Browse files
committed
Use generic modifier
1 parent 74ffb61 commit 501a2c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/schemacrawler/tools/command/aichat/utility/lanchain4j/AnthropicModelFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)