OpenaiStreamingChatResponseSpecification
constructor(responseFlow: Flow<String>? = null, responseChunks: List<String>? = null, delayBetweenChunks: Duration = Duration.ZERO, delay: Duration = Duration.ZERO, finishReason: String = "stop", sendDone: Boolean = false)(source)
Creates an instance of OpenaiStreamingChatResponseSpecification.
Parameters
responseFlow
A flow of string-based response chunks to be emitted sequentially as part of the streaming behavior.
responseChunks
A predefined list of response content chunks to be used in the streaming response.
delayBetweenChunks
The delay duration inserted between emitting each response chunk from the flow.
delay
A global delay applied to the entire response before it is initiated.
finishReason
A descriptor to indicate the reason for completion of the response, such as "stop".
sendDone
A flag indicating whether the special marker [DONE] should be sent at the end of the streaming response.