Skip to content

Commit

Permalink
Add a little tip about quarkus.langchain4j.log-requests/responses
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartisk committed May 3, 2024
1 parent 283def9 commit 8f1e9ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ quarkus.langchain4j.openai.api-key=sk-...

TIP: Alternatively, utilize the `QUARKUS_LANGCHAIN4J_OPENAI_API_KEY` environment variable.

TIP: If you want to see the LLM requests or responses in the console log,
also set `quarkus.langchain4j.log-requests=true` and/or
`quarkus.langchain4j.log-responses=true`,

Once you've added the dependency and configuration, the next step involves creating an _AI service_, serving as the integration point. This service is the interface your application code will utilize to interact with the LLM. A basic example is demonstrated below:

[source,java]
Expand Down

0 comments on commit 8f1e9ce

Please sign in to comment.