OpenAIEditModelUsage class final

This method is used to convert a Map<String, dynamic> object to a OpenAIEditModelUsage object.

Annotations
  • @immutable

Constructors

OpenAIEditModelUsage({required int promptTokens, required int completionTokens, required int totalTokens})
This method is used to convert a Map<String, dynamic> object to a OpenAIEditModelUsage object.
const
OpenAIEditModelUsage.fromMap(Map<String, dynamic> json)
This method is used to convert a Map<String, dynamic> object to a OpenAIEditModelUsage object.
factory

Properties

completionTokens int
The number of tokens in the completion.
final
hashCode int
The hash code for this object.
no setteroverride
promptTokens int
The number of tokens in the prompt.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalTokens int
The total number of tokens in the prompt and completion.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(covariant OpenAIEditModelUsage other) bool
The equality operator.
override