ChatModel class

Available extensions
Annotations
  • @artifact

Constructors

ChatModel.new({required String id, String? displayName, required ChatModelCost cost, required ChatModelCapabilities capabilities, bool deprecated = false})
const
ChatModel.basic(String id)
const
ChatModel.safe(String id)
const

Properties

capabilities ChatModelCapabilities
final
cost ChatModelCost
final
deprecated bool
final
displayName String?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

connect(ChatConnector connector) ConnectedChatModel
copyWith({_3? id, _3? displayName, _w deleteDisplayName = _F, _n? cost, _m? capabilities, _w? deprecated, _w resetDeprecated = _F}) → _g

Available on _g, provided by the $ChatModel extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({bool pretty = _F}) → _3

Available on _g, provided by the $ChatModel extension

toMap() → _1

Available on _g, provided by the $ChatModel extension

toString() String
A string representation of this object.
inherited

Operators

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