We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c9ab36 commit 5788fb1Copy full SHA for 5788fb1
README.md
@@ -118,7 +118,7 @@ val model: StreamingChatLanguageModel = OpenAiStreamingChatModel.builder()
118
// more configuration parameters here ...
119
.build()
120
121
-model.generateFlow(messages).collect { reply ->
+model.chatFlow(messages).collect { reply ->
122
when (reply) {
123
is Completion ->
124
println(
@@ -172,7 +172,7 @@ val model = OpenAiChatModel.builder()
172
val scope = CoroutineScope(Dispatchers.IO)
173
174
runBlocking {
175
- val result = model.generateAsync(
+ val result = model.chatAsync(
176
listOf(
177
systemMessage("You are helpful assistant"),
178
userMessage("Make a haiku about Kotlin, Langchani4j and LLM"),
0 commit comments