ChatModelCost class

Available extensions
Annotations
  • @artifact

Constructors

ChatModelCost.new({required double input, required double output})
const
ChatModelCost.free()
factory
ChatModelCost.io(double input, double output)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
input double
final
output double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({_1a? input, _1a? deltaInput, _1a? output, _1a? deltaOutput}) → _n

Available on _n, provided by the $ChatModelCost extension

getEstimatedCost(int inputTokens, int outputTokens) double
getRealCost(int inputTokens, int outputTokens) → Rational
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({bool pretty = _F}) → _3

Available on _n, provided by the $ChatModelCost extension

toMap() → _1

Available on _n, provided by the $ChatModelCost extension

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

Operators

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