OllamaChatBuildingStep
OllamaChatBuildingStep is a specialized implementation of AbstractBuildingStep intended for constructing and managing chat completion responses as part of the Ollama 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 Ollama's chat completion API.
Parameters
The MokksyServer instance used for handling mock request and response lifecycle.
The underlying BuildingStep for managing and supporting response configurations for Ollama Chat Completion requests.
Constructors
Functions
Configures a single, complete chat response for the mock Ollama chat completion API.
Configures a streaming chat completion response using a user-defined specification block.