Skip to content

Commit

Permalink
LangChain4j: add missing properties for test
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalgrimaud committed Nov 11, 2024
1 parent c474ce5 commit fd583d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
.set(propertyKey("langchain4j.open-ai.chat-model.log-requests"), propertyValue("true"))
.set(propertyKey("langchain4j.open-ai.chat-model.log-responses"), propertyValue("true"))
.and()
.springTestProperties()
.set(propertyKey("langchain4j.open-ai.chat-model.api-key"), propertyValue("jhipster"))
.and()
.build();
//@formatter:on
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ void shouldCreateModule() {
log-responses: 'true'
model-name: gpt-4o-mini
"""
)
.and()
.hasFile("src/test/resources/config/application-test.yml")
.containing(
"""
langchain4j:
open-ai:
chat-model:
api-key: jhipster
"""
);
}
}

0 comments on commit fd583d6

Please sign in to comment.