From 69660a445760c0d2887f25afcabc724812caba7f Mon Sep 17 00:00:00 2001 From: suhassk-hash Date: Tue, 3 Dec 2024 22:38:13 +0530 Subject: [PATCH] Resolving silly mistake --- .../googleaigemini/spring/AutoConfigIT.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/langchain4j-google-ai-gemini-spring-boot-starter/src/test/java/dev/langchain4j/googleaigemini/spring/AutoConfigIT.java b/langchain4j-google-ai-gemini-spring-boot-starter/src/test/java/dev/langchain4j/googleaigemini/spring/AutoConfigIT.java index e017d038..b4ebd559 100644 --- a/langchain4j-google-ai-gemini-spring-boot-starter/src/test/java/dev/langchain4j/googleaigemini/spring/AutoConfigIT.java +++ b/langchain4j-google-ai-gemini-spring-boot-starter/src/test/java/dev/langchain4j/googleaigemini/spring/AutoConfigIT.java @@ -22,7 +22,7 @@ class AutoConfigIT { -private static final String API_KEY =System.getenv("GOOGLE_AI_GEMINI_API_KEY"); +private static final String API_KEY = System.getenv("GOOGLE_AI_GEMINI_API_KEY"); ApplicationContextRunner contextRunner = new ApplicationContextRunner() .withConfiguration(AutoConfigurations.of(AutoConfig.class)); @@ -63,10 +63,10 @@ void provide_streaming_chat_model() { "langchain4j.google-ai-gemini.streamingChatModel.topP=0.9", "langchain4j.google-ai-gemini.streamingChatModel.topK=40", "langchain4j.google-ai-gemini.streamingChatModel.maxOutputTokens=100", - "langchain4j.google-ai-gemini.chatModel.safetySetting.gemini-harm-category=HARM_CATEGORY_SEXUALLY_EXPLICIT", - "langchain4j.google-ai-gemini.chatModel.safetySetting.gemini-harm-block-threshold=HARM_BLOCK_THRESHOLD_UNSPECIFIED", - "langchain4j.google-ai-gemini.chatModel.functionCallingConfig.gemini-mode=ANY", - "langchain4j.google-ai-gemini.chatModel.functionCallingConfig.allowed-function-names=allowCodeExecution,includeCodeExecutionOutput" + "langchain4j.google-ai-gemini.streamingChatModel.safetySetting.gemini-harm-category=HARM_CATEGORY_SEXUALLY_EXPLICIT", + "langchain4j.google-ai-gemini.streamingChatModel.safetySetting.gemini-harm-block-threshold=HARM_BLOCK_THRESHOLD_UNSPECIFIED", + "langchain4j.google-ai-gemini.streamingChatModel.functionCallingConfig.gemini-mode=ANY", + "langchain4j.google-ai-gemini.streamingChatModel.functionCallingConfig.allowed-function-names=allowCodeExecution,includeCodeExecutionOutput" ) .run(context -> { StreamingChatLanguageModel streamingChatLanguageModel = context.getBean(StreamingChatLanguageModel.class);