Skip to content

Commit

Permalink
Resolving silly mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Suhas-Koheda committed Dec 3, 2024
1 parent 4afe606 commit 69660a4
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 69660a4

Please sign in to comment.