Skip to content

Commit 2175c7c

Browse files
author
Dennys Fredericci
committed
Check if enable chat model property for Vertex Ai Gemini is set to true.
1 parent 2a9be51 commit 2175c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model-providers/vertex-ai-gemini/deployment/src/main/java/io/quarkiverse/langchain4j/vertexai/gemini/deployment/VertexAiGeminiProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ FeatureBuildItem feature() {
3434
@BuildStep
3535
public void providerCandidates(BuildProducer<ChatModelProviderCandidateBuildItem> chatProducer,
3636
LangChain4jVertexAiBuildConfig config) {
37-
if (config.chatModel().enabled().isEmpty()) {
37+
if (config.chatModel().enabled().isEmpty() || config.chatModel().enabled().get()) {
3838
chatProducer.produce(new ChatModelProviderCandidateBuildItem(PROVIDER));
3939
}
4040
}

0 commit comments

Comments
 (0)