OpenAIEmbeddingsModel class final

This class is used to represent an OpenAI embeddings request.

Annotations
  • @immutable

Constructors

OpenAIEmbeddingsModel({required List<OpenAIEmbeddingsDataModel> data, required String model, required OpenAIEmbeddingsUsageModel? usage})
This class is used to represent an OpenAI embeddings request.
const
OpenAIEmbeddingsModel.fromMap(Map<String, dynamic> map)
This class is used to represent an OpenAI embeddings request. This method is used to convert a Map<String, dynamic> object to a OpenAIEmbeddingsModel object.
factory

Properties

data List<OpenAIEmbeddingsDataModel>
The data returned by the embeddings request.
final
hashCode int
The hash code for this object.
no setteroverride
haveData bool
Weither the embeddings have at least one item in data.
no setter
model String
The model used to generate the embeddings.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usage OpenAIEmbeddingsUsageModel?
The usage of the embeddings, if any.
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 OpenAIEmbeddingsModel other) bool
The equality operator.
override