ChatModel class abstract interface

A chat-completion model.

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
model → String
Model identifier sent to the provider.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Releases network resources.
complete(List<ChatMessage> messages, {String? system, int? maxTokens}) → Future<ChatResponse>
Generates a complete response to messages.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stream(List<ChatMessage> messages, {String? system, int? maxTokens}) → Stream<String>
Streams the response to messages as text deltas.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited