Skip to content

Commit 9fed036

Browse files
committed
Fix incorrect logger class initialization
Signed-off-by: jitokim <[email protected]>
1 parent 560315c commit 9fed036

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

models/spring-ai-anthropic/src/test/java/org/springframework/ai/anthropic/api/tool/AnthropicApiToolIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class AnthropicApiToolIT {
5656

5757
public static final ConcurrentHashMap<String, Function> FUNCTIONS = new ConcurrentHashMap<>();
5858

59-
private static final Logger logger = LoggerFactory.getLogger(AnthropicApiLegacyToolIT.class);
59+
private static final Logger logger = LoggerFactory.getLogger(AnthropicApiToolIT.class);
6060

6161
AnthropicApi anthropicApi = new AnthropicApi(System.getenv("ANTHROPIC_API_KEY"));
6262

models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/OpenAiChatModelProxyToolCallsIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
@EnabledIfEnvironmentVariable(named = "OPENAI_API_KEY", matches = ".+")
6161
class OpenAiChatModelProxyToolCallsIT {
6262

63-
private static final Logger logger = LoggerFactory.getLogger(OpenAiChatModelIT.class);
63+
private static final Logger logger = LoggerFactory.getLogger(OpenAiChatModelProxyToolCallsIT.class);
6464

6565
private static final String DEFAULT_MODEL = "gpt-4o-mini";
6666

models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/proxy/GroqWithOpenAiChatModelIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
import org.springframework.ai.openai.api.OpenAiApi;
5353
import org.springframework.ai.openai.api.tool.MockWeatherService;
5454
import org.springframework.ai.openai.chat.ActorsFilms;
55-
import org.springframework.ai.openai.chat.OpenAiChatModelIT;
5655
import org.springframework.beans.factory.annotation.Autowired;
5756
import org.springframework.beans.factory.annotation.Value;
5857
import org.springframework.boot.SpringBootConfiguration;
@@ -70,7 +69,7 @@
7069
@Disabled("Due to rate limiting it is hard to run it in one go")
7170
class GroqWithOpenAiChatModelIT {
7271

73-
private static final Logger logger = LoggerFactory.getLogger(OpenAiChatModelIT.class);
72+
private static final Logger logger = LoggerFactory.getLogger(GroqWithOpenAiChatModelIT.class);
7473

7574
private static final String GROQ_BASE_URL = "https://api.groq.com/openai";
7675

models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/proxy/OllamaWithOpenAiChatModelIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
import org.springframework.ai.openai.api.OpenAiApi;
5656
import org.springframework.ai.openai.api.tool.MockWeatherService;
5757
import org.springframework.ai.openai.chat.ActorsFilms;
58-
import org.springframework.ai.openai.chat.OpenAiChatModelIT;
5958
import org.springframework.beans.factory.annotation.Autowired;
6059
import org.springframework.beans.factory.annotation.Value;
6160
import org.springframework.boot.SpringBootConfiguration;
@@ -73,7 +72,7 @@
7372
@SpringBootTest(classes = OllamaWithOpenAiChatModelIT.Config.class)
7473
class OllamaWithOpenAiChatModelIT {
7574

76-
private static final Logger logger = LoggerFactory.getLogger(OpenAiChatModelIT.class);
75+
private static final Logger logger = LoggerFactory.getLogger(OllamaWithOpenAiChatModelIT.class);
7776

7877
private static final String DEFAULT_OLLAMA_MODEL = "mistral";
7978

0 commit comments

Comments
 (0)