OllamaStreamingChatResponseSpecification

class OllamaStreamingChatResponseSpecification(responseFlow: Flow<String>? = null, responseChunks: List<String>? = null, delayBetweenChunks: Duration = 0.1.seconds, delay: Duration = 0.seconds) : AbstractStreamingResponseSpecification<ChatRequest, String, String> (source)

Specification for configuring streaming chat completion responses.

This class is used to specify the content and behavior of streaming responses to chat completion requests. It allows specifying the response chunks, response flow, and delay between chunks.

Constructors

Link copied to clipboard
constructor(responseFlow: Flow<String>? = null, responseChunks: List<String>? = null, delayBetweenChunks: Duration = 0.1.seconds, delay: Duration = 0.seconds)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun chunks(chunks: List<String>)
open override fun chunks(vararg chunks: String)
Link copied to clipboard
open override fun delayMillis(value: Long)
Link copied to clipboard
open override fun stream(stream: Stream<String>)