Skip to content

Commit

Permalink
Docs: streaming properties
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain4j committed Apr 22, 2024
1 parent 2c9027f commit f492df6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/docs/tutorials/spring-boot-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@ langchain4j.open-ai.chat-model.api-key=${OPENAI_API_KEY}
The complete list of supported properties can be found
[here](https://github.com/langchain4j/langchain4j-spring/blob/main/langchain4j-open-ai-spring-boot-starter/src/main/java/dev/langchain4j/openai/spring/AutoConfig.java).

In this case, an instance of `OpenAiChatModel` will be automatically created,
In this case, an instance of `OpenAiChatModel` (an implementation of a `ChatLanguageModel`) will be automatically created,
and you can autowire it where needed.

If you need an instance of a `StreamingChatLanguageModel`,
use the `streaming-chat-model` instead of the `chat-model` properties:
```
langchain4j.open-ai.streaming-chat-model.api-key=${OPENAI_API_KEY}
...
```

## LangChain4j Spring Boot Starter

Expand Down

0 comments on commit f492df6

Please sign in to comment.