Class JobCreateParams.Method
-
- All Implemented Interfaces:
public final class JobCreateParams.Method
The method used for fine-tuning.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
JobCreateParams.Method.Builder
A builder for Method.
public final class
JobCreateParams.Method.Type
The type of method. Is either
supervised
,dpo
, orreinforcement
.
-
Method Summary
Modifier and Type Method Description final JobCreateParams.Method.Type
type()
The type of method. final Optional<DpoMethod>
dpo()
Configuration for the DPO fine-tuning method. final Optional<ReinforcementMethod>
reinforcement()
Configuration for the reinforcement fine-tuning method. final Optional<SupervisedMethod>
supervised()
Configuration for the supervised fine-tuning method. final JsonField<JobCreateParams.Method.Type>
_type()
Returns the raw JSON value of type. final JsonField<DpoMethod>
_dpo()
Returns the raw JSON value of dpo. final JsonField<ReinforcementMethod>
_reinforcement()
Returns the raw JSON value of reinforcement. final JsonField<SupervisedMethod>
_supervised()
Returns the raw JSON value of supervised. final Map<String, JsonValue>
_additionalProperties()
final JobCreateParams.Method.Builder
toBuilder()
final JobCreateParams.Method
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static JobCreateParams.Method.Builder
builder()
Returns a mutable builder for constructing an instance of Method. -
-
Method Detail
-
type
final JobCreateParams.Method.Type type()
The type of method. Is either
supervised
,dpo
, orreinforcement
.
-
reinforcement
final Optional<ReinforcementMethod> reinforcement()
Configuration for the reinforcement fine-tuning method.
-
supervised
final Optional<SupervisedMethod> supervised()
Configuration for the supervised fine-tuning method.
-
_type
final JsonField<JobCreateParams.Method.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_dpo
final JsonField<DpoMethod> _dpo()
Returns the raw JSON value of dpo.
Unlike dpo, this method doesn't throw if the JSON field has an unexpected type.
-
_reinforcement
final JsonField<ReinforcementMethod> _reinforcement()
Returns the raw JSON value of reinforcement.
Unlike reinforcement, this method doesn't throw if the JSON field has an unexpected type.
-
_supervised
final JsonField<SupervisedMethod> _supervised()
Returns the raw JSON value of supervised.
Unlike supervised, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final JobCreateParams.Method.Builder toBuilder()
-
validate
final JobCreateParams.Method validate()
-
builder
final static JobCreateParams.Method.Builder builder()
Returns a mutable builder for constructing an instance of Method.
The following fields are required:
.type()
-
-
-
-