CompletionsRequest class
Represents a request to the OpenAI Completions API.
Constructors
Properties
- deploymentId → String
-
The deployment ID to use for this request.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxTokens → int?
-
The maximum number of tokens to generate.
final
- prompt → String
-
The prompt to use for this request.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- temperature → double?
-
Sampling temperature to use. Higher values means the model will
take more risks.
final
- topP → double?
-
An alternative to sampling with temperature, called nucleus sampling.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the request to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited