FineTuningJobError class abstract
For fine-tuning jobs that have failed
, this will contain more information on the cause of the failure.
- Available extensions
- Annotations
-
- @freezed
Constructors
- FineTuningJobError.new({required String code, required String message, required String? param})
-
Factory constructor for FineTuningJobError
constfactory
-
FineTuningJobError.fromJson(Map<
String, dynamic> json) -
Object construction from a JSON representation
factory
Properties
- code → String
-
A machine-readable error code.
no setterinherited
-
copyWith
→ $FineTuningJobErrorCopyWith<
FineTuningJobError> -
Create a copy of FineTuningJobError
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A human-readable error message.
no setterinherited
- param → String?
-
The parameter that was invalid, usually
training_file
orvalidation_file
. This field will be null if the failure was not parameter-specific.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_FineTuningJobError value)) → TResult -
Available on FineTuningJobError, provided by the FineTuningJobErrorPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_FineTuningJobError value)?) → TResult? -
Available on FineTuningJobError, provided by the FineTuningJobErrorPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_FineTuningJobError value)?, {required TResult orElse()}) → TResult -
Available on FineTuningJobError, provided by the FineTuningJobErrorPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String code, String message, String? param)?, {required TResult orElse()}) → TResult -
Available on FineTuningJobError, provided by the FineTuningJobErrorPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this FineTuningJobError to a JSON map.
inherited
-
toMap(
) → Map< String, dynamic> - Map representation of object (not serialized)
-
toString(
) → String -
A string representation of this object.
inherited
-
validateSchema(
) → String? - Perform validations on the schema property values
-
when<
TResult extends Object?> (TResult $default(String code, String message, String? param)) → TResult -
Available on FineTuningJobError, provided by the FineTuningJobErrorPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String code, String message, String? param)?) → TResult? -
Available on FineTuningJobError, provided by the FineTuningJobErrorPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
propertyNames
→ const List<
String> - List of all property names of schema