File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spring-ai-model/src/main/java/org/springframework/ai/model/tool Expand file tree Collapse file tree 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) {
9898 Assert .notNull (chatOptions , "chatOptions cannot be null" );
9999 boolean internalToolExecutionEnabled ;
100100 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 ());
103104 }
104105 else if (chatOptions instanceof FunctionCallingOptions functionCallingOptions
105106 && functionCallingOptions .getProxyToolCalls () != null ) {
You can’t perform that action at this time.
0 commit comments