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
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