respondsStream
Configures a streaming mock response for a generate completion request using the provided specification block.
Sets up a chunked server-sent event (SSE) response, streaming JSON-encoded completion chunks as defined by the configuration. The response stream includes initial, content, and final chunks, and requires either a flow or a list of response chunks to be specified.
Parameters
block
Configuration block for customizing the streaming response via OllamaStreamingGenerateResponseSpecification.