getStreamingChatResponseFromText method
Stream<ChatResponseUpdate>
getStreamingChatResponseFromText(
- String message, {
- ChatOptions? options,
- CancellationToken? cancellationToken,
Sends a single user text message and returns a streaming response.
Implementation
Stream<ChatResponseUpdate> getStreamingChatResponseFromText(
String message, {
ChatOptions? options,
CancellationToken? cancellationToken,
}) =>
getStreamingChatResponse(
messages: [
ChatMessage.fromText(ChatRole.user, message),
],
options: options,
cancellationToken: cancellationToken,
);