OpenaiChatCompletionsBuildingStep
OpenaiChatCompletionsBuildingStep is a specialized implementation of AbstractBuildingStep intended for constructing and managing chat completion responses as part of the OpenAI Mock Server setup.
The class provides features to create both single-blocked responses and streaming responses for simulated chat completions using mock data. It extends the functionality of AbstractBuildingStep by applying specific logic for generating fake responses compliant with OpenAI's chat completion API.
Author
Konstantin Pavlov
Parameters
The mock server instance used for handling mock request and response lifecycle.
The underlying building step for managing and supporting response configurations for OpenAI Chat Completion requests.
See also
Constructors
Functions
Configures a streaming response for a chat completions request by applying the provided specifications.