Skip to content

Commit 2a9be51

Browse files
author
Dennys Fredericci
committed
Check if enable chat model property for Anthropic is set to true.
1 parent 9b983a9 commit 2a9be51

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

model-providers/anthropic/deployment/src/main/java/io/quarkiverse/langchain4j/anthropic/deployment/AnthropicProcessor.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
LangChain4jAnthropicBuildConfig 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)