Skip to content

Commit

Permalink
Upgrade to com.azure:azure-ai-openai 1.0.0-beta.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jdubois committed Apr 19, 2024
1 parent 608f55b commit f719fe0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -157,10 +157,10 @@ private Response<List<Embedding>> embedTexts(List<String> texts) {
);
}

private static Embedding from(List<Double> vector) {
private static Embedding from(List<Float> vector) {
float[] langChainVector = new float[vector.size()];
for (int index = 0; index < vector.size(); index++) {
langChainVector[index] = vector.get(index).floatValue();
langChainVector[index] = vector.get(index);
}
return Embedding.from(langChainVector);
}
Expand Down
2 changes: 1 addition & 1 deletion langchain4j-parent/pom.xml
Expand Up @@ -19,7 +19,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.outputTimestamp>1705675871</project.build.outputTimestamp>
<openai4j.version>0.17.0</openai4j.version>
<azure-ai-openai.version>1.0.0-beta.7</azure-ai-openai.version>
<azure-ai-openai.version>1.0.0-beta.8</azure-ai-openai.version>
<azure-ai-search.version>11.6.3</azure-ai-search.version>
<azure.storage-blob.version>12.25.3</azure.storage-blob.version>
<azure.storage-common.version>12.24.3</azure.storage-common.version>
Expand Down

0 comments on commit f719fe0

Please sign in to comment.