diff --git a/models/spring-ai-anthropic/src/main/java/org/springframework/ai/anthropic/AnthropicChatModel.java b/models/spring-ai-anthropic/src/main/java/org/springframework/ai/anthropic/AnthropicChatModel.java index 6b3ea00ec7..76fcc02ee1 100644 --- a/models/spring-ai-anthropic/src/main/java/org/springframework/ai/anthropic/AnthropicChatModel.java +++ b/models/spring-ai-anthropic/src/main/java/org/springframework/ai/anthropic/AnthropicChatModel.java @@ -304,7 +304,7 @@ public Flux stream(Prompt prompt) { * chunks and the final response with tool call information or the model's final * answer. */ - public Flux internalStream(Prompt prompt, @Nullable ChatResponse previousChatResponse) { + private Flux internalStream(Prompt prompt, @Nullable ChatResponse previousChatResponse) { return Flux.deferContextual(contextView -> { MessageCreateParams request = createRequest(prompt, true); @@ -541,7 +541,7 @@ else if (streamingState.isTrackingThinking()) { * turn. * @return The final {@link ChatResponse} after all tool calls (if any) are resolved. */ - public ChatResponse internalCall(Prompt prompt, @Nullable ChatResponse previousChatResponse) { + private ChatResponse internalCall(Prompt prompt, @Nullable ChatResponse previousChatResponse) { MessageCreateParams request = createRequest(prompt, false);