Skip to content

Commit

Permalink
LangChain4j: use demo for api-key value
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalgrimaud committed Nov 11, 2024
1 parent ab656b5 commit 8b849ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
.addDependency(GROUP_ID, OPEN_AI_ARTIFACT_ID, VERSION_SLUG)
.and()
.springMainProperties()
.set(LANGCHAIN4J_PROPERTY_API_KEY, propertyValue("${OPENAI_API_KEY}"))
.set(LANGCHAIN4J_PROPERTY_API_KEY, propertyValue("demo"))
.comment(LANGCHAIN4J_PROPERTY_API_KEY, comment(API_KEY_DEMO_COMMENT))
.set(propertyKey("langchain4j.open-ai.chat-model.model-name"), propertyValue("gpt-4o-mini"))
.set(propertyKey("langchain4j.open-ai.chat-model.log-requests"), propertyValue("true"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void shouldCreateModule() {
open-ai:
chat-model:
# You can temporarily use 'demo' key, which is provided for free for demonstration purposes
api-key: ${OPENAI_API_KEY}
api-key: demo
log-requests: 'true'
log-responses: 'true'
model-name: gpt-4o-mini
Expand Down

0 comments on commit 8b849ed

Please sign in to comment.