getChatResponseFromMessage method
Future<ChatResponse>
getChatResponseFromMessage(
- ChatMessage message, {
- ChatOptions? options,
- CancellationToken? cancellationToken,
Sends a single message and returns the response.
Implementation
Future<ChatResponse> getChatResponseFromMessage(
ChatMessage message, {
ChatOptions? options,
CancellationToken? cancellationToken,
}) =>
getChatResponse(
messages: [message],
options: options,
cancellationToken: cancellationToken,
);