chatStream
Streams a chat request, returning chunks as they arrive.
Return
A kotlinx.coroutines.flow.Flow of io.kory.core.chat.chunk.ChatChunk objects, each containing one or more io.kory.core.chat.choice.ChatChunkChoice with incremental content.
Parameters
request
A fully configured ChatRequest.
Streams a chat using DSL-style message construction.
Return
A Flow of ChatChunk streaming responses.
Parameters
model
The model identifier.
blocks
A ChatBuilder lambda for adding messages.
Streams a chat using full DSL configuration.
Return
A Flow of ChatChunk streaming responses.
Parameters
block
A ChatRequestBuilder lambda for configuring the request.