respondsStream

Configures a streaming chat completion response using a user-defined specification block.

Sets up a chunked HTTP response where chat completion data is streamed as a sequence of JSON objects, simulating real-time message delivery. The configuration block customizes the streaming behavior and content.

Parameters

block

A configuration block for customizing the streaming chat response via OllamaStreamingChatResponseSpecification.