Skip to content

Commit 5788fb1

Browse files
Konstantin PavlovKonstantin Pavlov
Konstantin Pavlov
authored and
Konstantin Pavlov
committed
Update README.md
1 parent 4c9ab36 commit 5788fb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ val model: StreamingChatLanguageModel = OpenAiStreamingChatModel.builder()
118118
// more configuration parameters here ...
119119
.build()
120120

121-
model.generateFlow(messages).collect { reply ->
121+
model.chatFlow(messages).collect { reply ->
122122
when (reply) {
123123
is Completion ->
124124
println(
@@ -172,7 +172,7 @@ val model = OpenAiChatModel.builder()
172172
val scope = CoroutineScope(Dispatchers.IO)
173173

174174
runBlocking {
175-
val result = model.generateAsync(
175+
val result = model.chatAsync(
176176
listOf(
177177
systemMessage("You are helpful assistant"),
178178
userMessage("Make a haiku about Kotlin, Langchani4j and LLM"),

0 commit comments

Comments
 (0)