OpenAIEmbeddingsUsageModel class final

This class is used to represent the usage of an OpenAI embeddings.

Annotations
  • @immutable

Constructors

OpenAIEmbeddingsUsageModel({required int? promptTokens, required int? totalTokens})
This class is used to represent the usage of an OpenAI embeddings.
const
OpenAIEmbeddingsUsageModel.fromMap(Map<String, dynamic> map)
This class is used to represent the usage of an OpenAI embeddings.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
havePromptTokens bool
Weither the usage have a prompt tokens information.
no setter
haveTotalTokens bool
Weither the usage have a total tokens information.
no setter
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 OpenAIEmbeddingsUsageModel other) bool
The equality operator.
override