menu
chat_gpt_sdk package
documentation
chat_gpt_sdk.dart
EmbedRequest class
EmbedRequest class
dark_mode
light_mode
EmbedRequest
class
Constructors
EmbedRequest
({
required
EmbedModel
model
,
required
String
input
,
String
?
user
=
""
})
Properties
hashCode
→
int
The hash code for this object.
no setter
inherited
input
→
String
Input text to get embeddings for, encoded as a string or array of tokens. To get embeddings for multiple inputs in a single request, pass an array of strings or array of token arrays. Each input must not exceed 8192 tokens in length.
input
final
model
→ EmbedModel
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.
model
final
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
user
→
String
?
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
user
final
Methods
noSuchMethod
(
Invocation
invocation
)
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson
(
)
→
Map
<
String
,
dynamic
>
toString
(
)
→
String
A string representation of this object.
inherited
Operators
operator ==
(
Object
other
)
→
bool
The equality operator.
inherited
chat_gpt_sdk package
documentation
chat_gpt_sdk
EmbedRequest class
chat_gpt_sdk library