From 76cba5833c5df95ccd0e0a580a2ea9711a15177e Mon Sep 17 00:00:00 2001 From: siddharth Paul Date: Tue, 5 Dec 2023 00:21:21 +0530 Subject: [PATCH] fix: Fix milvus builder configuration setters --- .../milvus/MilvusVectorStoreAutoConfiguration.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/vectorstore/milvus/MilvusVectorStoreAutoConfiguration.java b/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/vectorstore/milvus/MilvusVectorStoreAutoConfiguration.java index 5d6434cd5..99ecccc33 100644 --- a/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/vectorstore/milvus/MilvusVectorStoreAutoConfiguration.java +++ b/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/vectorstore/milvus/MilvusVectorStoreAutoConfiguration.java @@ -78,27 +78,27 @@ public class MilvusVectorStoreAutoConfiguration { } if (clientProperties.isSecure() && StringUtils.hasText(clientProperties.getToken())) { - builder.withUri(clientProperties.getToken()); + builder.withToken(clientProperties.getToken()); } if (clientProperties.isSecure() && StringUtils.hasText(clientProperties.getClientKeyPath())) { - builder.withUri(clientProperties.getClientKeyPath()); + builder.withClientKeyPath(clientProperties.getClientKeyPath()); } if (clientProperties.isSecure() && StringUtils.hasText(clientProperties.getClientPemPath())) { - builder.withUri(clientProperties.getClientPemPath()); + builder.withClientPemPath(clientProperties.getClientPemPath()); } if (clientProperties.isSecure() && StringUtils.hasText(clientProperties.getCaPemPath())) { - builder.withUri(clientProperties.getCaPemPath()); + builder.withCaPemPath(clientProperties.getCaPemPath()); } if (clientProperties.isSecure() && StringUtils.hasText(clientProperties.getServerPemPath())) { - builder.withUri(clientProperties.getServerPemPath()); + builder.withServerPemPath(clientProperties.getServerPemPath()); } if (clientProperties.isSecure() && StringUtils.hasText(clientProperties.getServerName())) { - builder.withUri(clientProperties.getServerName()); + builder.withServerName(clientProperties.getServerName()); } return new MilvusServiceClient(builder.build());