getStreamingChatResponse method

  1. @override
Stream<ChatResponseUpdate> getStreamingChatResponse({
  1. required Iterable<ChatMessage> messages,
  2. ChatOptions? options,
  3. 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,
    );