Skip to content

Commit

Permalink
Fix incorrect logger class initialization
Browse files Browse the repository at this point in the history
Signed-off-by: jitokim <[email protected]>
  • Loading branch information
jitokim authored and ilayaperumalg committed Nov 4, 2024
1 parent 8b4df90 commit 166e3d5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class AnthropicApiToolIT {

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

private static final Logger logger = LoggerFactory.getLogger(AnthropicApiLegacyToolIT.class);
private static final Logger logger = LoggerFactory.getLogger(AnthropicApiToolIT.class);

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
@EnabledIfEnvironmentVariable(named = "OPENAI_API_KEY", matches = ".+")
class OpenAiChatModelProxyToolCallsIT {

private static final Logger logger = LoggerFactory.getLogger(OpenAiChatModelIT.class);
private static final Logger logger = LoggerFactory.getLogger(OpenAiChatModelProxyToolCallsIT.class);

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
import org.springframework.ai.openai.api.OpenAiApi;
import org.springframework.ai.openai.api.tool.MockWeatherService;
import org.springframework.ai.openai.chat.ActorsFilms;
import org.springframework.ai.openai.chat.OpenAiChatModelIT;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringBootConfiguration;
Expand All @@ -70,7 +69,7 @@
@Disabled("Due to rate limiting it is hard to run it in one go")
class GroqWithOpenAiChatModelIT {

private static final Logger logger = LoggerFactory.getLogger(OpenAiChatModelIT.class);
private static final Logger logger = LoggerFactory.getLogger(GroqWithOpenAiChatModelIT.class);

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
import org.springframework.ai.openai.api.OpenAiApi;
import org.springframework.ai.openai.api.tool.MockWeatherService;
import org.springframework.ai.openai.chat.ActorsFilms;
import org.springframework.ai.openai.chat.OpenAiChatModelIT;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringBootConfiguration;
Expand All @@ -73,7 +72,7 @@
@SpringBootTest(classes = OllamaWithOpenAiChatModelIT.Config.class)
class OllamaWithOpenAiChatModelIT {

private static final Logger logger = LoggerFactory.getLogger(OpenAiChatModelIT.class);
private static final Logger logger = LoggerFactory.getLogger(OllamaWithOpenAiChatModelIT.class);

private static final String DEFAULT_OLLAMA_MODEL = "mistral";

Expand Down

0 comments on commit 166e3d5

Please sign in to comment.