File tree 1 file changed +3
-2
lines changed
spring-ai-model/src/main/java/org/springframework/ai/model/tool
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,9 @@ static boolean isInternalToolExecutionEnabled(ChatOptions chatOptions) {
98
98
Assert .notNull (chatOptions , "chatOptions cannot be null" );
99
99
boolean internalToolExecutionEnabled ;
100
100
if (chatOptions instanceof ToolCallingChatOptions toolCallingChatOptions
101
- && toolCallingChatOptions .isInternalToolExecutionEnabled () != null ) {
102
- internalToolExecutionEnabled = Boolean .TRUE .equals (toolCallingChatOptions .isInternalToolExecutionEnabled ());
101
+ && toolCallingChatOptions .getInternalToolExecutionEnabled () != null ) {
102
+ internalToolExecutionEnabled = Boolean .TRUE
103
+ .equals (toolCallingChatOptions .getInternalToolExecutionEnabled ());
103
104
}
104
105
else if (chatOptions instanceof FunctionCallingOptions functionCallingOptions
105
106
&& functionCallingOptions .getProxyToolCalls () != null ) {
You can’t perform that action at this time.
0 commit comments