ChatUsage class
Chat使用情况模型
Constructors
- ChatUsage.new({required int promptTokens, required int completionTokens, required int totalTokens})
-
ChatUsage.fromJson(Map<
String, dynamic> json) -
factory
Properties
- completionTokens → int
-
完成token数
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- promptTokens → int
-
提示token数
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalTokens → int
-
总token数
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited