Skip to content

Commit 064ea87

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

File tree

1 file changed

+1
-1
lines changed
  • model-providers/vertex-ai/deployment/src/main/java/io/quarkiverse/langchain4j/vertexai/deployment

1 file changed

+1
-1
lines changed

model-providers/vertex-ai/deployment/src/main/java/io/quarkiverse/langchain4j/vertexai/deployment/VertexAiProcessor.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)