(improvement)(chat) Remove initial default values, make the configuration file settings take effect, and optimize the code. (#1406)

This commit is contained in:
lexluo09
2024-07-14 23:20:06 +08:00
committed by GitHub
parent d5c78d87e7
commit 529251097b
8 changed files with 25 additions and 33 deletions

View File

@@ -15,6 +15,6 @@ public class MilvusAutoConfig {
@Bean
@ConditionalOnProperty(PREFIX + ".embedding-store.uri")
EmbeddingStoreFactory milvusChatModel(Properties properties) {
return new MilvusEmbeddingStoreFactory(properties);
return new MilvusEmbeddingStoreFactory(properties.getEmbeddingStore());
}
}