Skip to content

Commit 91937d0

Browse files
garethjevanstzolov
authored andcommitted
fix: predicate should be wired in even if toolCallingManager is not null
Signed-off-by: Gareth Evans <[email protected]>
1 parent def15f9 commit 91937d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: models/spring-ai-anthropic/src/main/java/org/springframework/ai/anthropic/AnthropicChatModel.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ public Builder observationRegistry(ObservationRegistry observationRegistry) {
599599
public AnthropicChatModel build() {
600600
if (this.toolCallingManager != null) {
601601
return new AnthropicChatModel(this.anthropicApi, this.defaultOptions, this.toolCallingManager,
602-
this.retryTemplate, this.observationRegistry);
602+
this.retryTemplate, this.observationRegistry, this.toolExecutionEligibilityPredicate);
603603
}
604604
return new AnthropicChatModel(this.anthropicApi, this.defaultOptions, DEFAULT_TOOL_CALLING_MANAGER,
605605
this.retryTemplate, this.observationRegistry, this.toolExecutionEligibilityPredicate);

0 commit comments

Comments
 (0)