getStreamingChatResponse method
Stream<ChatResponseUpdate>
getStreamingChatResponse({
- required Iterable<
ChatMessage> messages, - ChatOptions? options,
- CancellationToken? cancellationToken,
override
Sends a chat request and returns a stream of response updates.
Implementation
@override
Stream<ChatResponseUpdate> getStreamingChatResponse({
required Iterable<ChatMessage> messages,
ChatOptions? options,
CancellationToken? cancellationToken,
}) =>
// Caching of streaming responses is not supported by default.
// Subclasses can override this to provide caching for streaming.
super.getStreamingChatResponse(
messages: messages,
options: options,
cancellationToken: cancellationToken,
);