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
Constants
- anthropicClaude3_5Haiku → const ChatModel
- anthropicClaude3_7Sonnet → const ChatModel
- anthropicClaude4Opus → const ChatModel
- anthropicClaude4Sonnet → const ChatModel
- googleGemini2_5Flash → const ChatModel
- googleGemini2_5FlashLite → const ChatModel
- googleGemini2_5Pro → const ChatModel
- googleGemini2Flash → const ChatModel
- googleGemini2FlashLite → const ChatModel
- mercury → const ChatModel
- mercuryCoder → const ChatModel
- openai4_1 → const ChatModel
- openai4_1Mini → const ChatModel
- openai4_1Nano → const ChatModel
- openai4o → const ChatModel
- openai4oMini → const ChatModel
- openaiO1 → const ChatModel
- openaiO1Mini → const ChatModel
- openaiO1Pro → const ChatModel
- openaiO3 → const ChatModel
- openaiO3Mini → const ChatModel
- openaiO4Mini → const ChatModel
- xaiGrok3 → const ChatModel
- xaiGrok3Fast → const ChatModel
- xaiGrok3Mini → const ChatModel
- xaiGrok3MiniFast → const ChatModel
- xaiGrok4 → const ChatModel