From 29128c11288b60fe63761734f416ab38acd1b925 Mon Sep 17 00:00:00 2001 From: Gareth Evans Date: Tue, 11 Nov 2025 11:30:46 +0000 Subject: [PATCH] chore: remove verbose debug logging in AnthropicChatModel Signed-off-by: Gareth Evans --- .../springframework/ai/anthropic/AnthropicChatModel.java | 8 -------- 1 file changed, 8 deletions(-) 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 40010e11ad9..ef965165d08 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 @@ -608,17 +608,9 @@ private Map mergeHttpHeaders(Map runtimeHttpHead ChatCompletionRequest createRequest(Prompt prompt, boolean stream) { // Get caching strategy and options from the request - logger.debug("DEBUGINFO: prompt.getOptions() type: {}, value: {}", - prompt.getOptions() != null ? prompt.getOptions().getClass().getName() : "null", prompt.getOptions()); - AnthropicChatOptions requestOptions = null; if (prompt.getOptions() instanceof AnthropicChatOptions) { requestOptions = (AnthropicChatOptions) prompt.getOptions(); - logger.debug("DEBUGINFO: Found AnthropicChatOptions - cacheOptions {}", requestOptions.getCacheOptions()); - } - else { - logger.debug("DEBUGINFO: Options is NOT AnthropicChatOptions, it's: {}", - prompt.getOptions() != null ? prompt.getOptions().getClass().getName() : "null"); } AnthropicCacheOptions cacheOptions = requestOptions != null ? requestOptions.getCacheOptions()