EmbeddingRequest class

Annotations
  • @freezed

Constructors

EmbeddingRequest({String? model, required List<String> input, String? user})
const
factory
EmbeddingRequest.fromJson(Map<String, Object?> json)
factory

Properties

copyWith → $EmbeddingRequestCopyWith<EmbeddingRequest>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
input List<String>
Input text to get embeddings for, encoded as a string or array of tokens.
no setterinherited
model String?
ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user String?
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
no setterinherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited