OpenaiStreamingChatResponseSpecification
A specification class for defining and customizing the streaming chat response behavior in an OpenAI-like environment. This class provides configuration options for managing streaming responses, delays, chunking, and signaling the end of the response.
This class extends ResponseSpecification to offer additional parameters aimed at handling streaming chat responses.
Author
Konstantin Pavlov
Parameters
A flow of string-based response chunks to be emitted sequentially as part of the streaming behavior.
A predefined list of response content chunks to be used in the streaming response.
The delay duration inserted between emitting each response chunk from the flow.
A global delay applied to the entire response before it is initiated.
A descriptor to indicate the reason for completion of the response, such as "stop".
A flag indicating whether the special marker [DONE] should be sent at the end of the streaming response.