Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to com.azure:azure-ai-openai 1.0.0-beta.8 #991

Merged
merged 5 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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) {
jdubois marked this conversation as resolved.
Show resolved Hide resolved
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