respondsStream

Configures a streaming response for a chat completions request by applying the provided specifications.

This function sets up a chunked response where the response is streamed as a series of JSON objects, often used in streaming chat scenarios. It allows the specification of response content and other streaming-specific details through a configuration block.

Parameters

block

A configuration block that customizes the streaming response by applying specifications to an instance of OpenaiChatResponseSpecification.