ModelCard class sealed
Union class for BaseModelCard, FTModelCard
- Implementers
- Annotations
-
- @Freezed(unionKey: 'type')
Constructors
-
ModelCard.Base({required String id, @Default('model') String model, @JsonKey(includeIfNull: false) int? created, @JsonKey(name: 'owned_by') @Default('mistralai') String ownedBy, required ModelCapabilities capabilities, @JsonKey(includeIfNull: false) String? name, @JsonKey(includeIfNull: false) String? description, @JsonKey(name: 'max_context_length') @Default(32768) int maxContextLength, @JsonKey(includeIfNull: false) @Default([]) List<
String> ? aliases, @JsonKey(includeIfNull: false) String? deprecation, @JsonKey(name: 'default_model_temperature', includeIfNull: false) double? defaultModelTemperature, @Default('base') String type}) -
Union constructor for BaseModelCard
constfactory
-
ModelCard.fromJson(Map<
String, dynamic> json) -
Object construction from a JSON representation
factory
-
ModelCard.FT({required String id, @Default('model') String object, @JsonKey(includeIfNull: false) int? created, @JsonKey(name: 'owned_by') @Default('mistralai') String ownedBy, required ModelCapabilities capabilities, @JsonKey(includeIfNull: false) String? name, @JsonKey(includeIfNull: false) String? description, @JsonKey(name: 'max_context_length') @Default(32768) int maxContextLength, @Default([]) List<
String> aliases, @JsonKey(includeIfNull: false) String? deprecation, @JsonKey(name: 'default_model_temperature', includeIfNull: false) double? defaultModelTemperature, @Default('fine-tuned') String type, required String job, required String root, @Default(false) bool archived}) -
Union constructor for FTModelCard
constfactory
Properties
-
aliases
→ List<
String> ? -
No Description
no setterinherited
- capabilities → ModelCapabilities
-
No Description
no setterinherited
-
copyWith
→ $ModelCardCopyWith<
ModelCard> -
Create a copy of ModelCard
with the given fields replaced by the non-null parameter values.
no setterinherited
- created → int?
-
No Description
no setterinherited
- defaultModelTemperature → double?
-
No Description
no setterinherited
- deprecation → String?
-
No Description
no setterinherited
- description → String?
-
No Description
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
No Description
no setterinherited
- maxContextLength → int
-
No Description
no setterinherited
- name → String?
-
No Description
no setterinherited
- ownedBy → String
-
No Description
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
No Description
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult Base(ModelCardBase value), required TResult FT(ModelCardFT value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult? Base(ModelCardBase value)?, TResult? FT(ModelCardFT value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult Base(ModelCardBase value)?, TResult FT(ModelCardFT value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult Base(String id, String model, int? created, String ownedBy, ModelCapabilities capabilities, String? name, String? description, int maxContextLength, List< String> ? aliases, String? deprecation, double? defaultModelTemperature, String type)?, TResult FT(String id, String object, int? created, String ownedBy, ModelCapabilities capabilities, String? name, String? description, int maxContextLength, List<String> aliases, String? deprecation, double? defaultModelTemperature, String type, String job, String root, bool archived)?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ModelCard to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult Base(String id, String model, int? created, String ownedBy, ModelCapabilities capabilities, String? name, String? description, int maxContextLength, List< String> ? aliases, String? deprecation, double? defaultModelTemperature, String type), required TResult FT(String id, String object, int? created, String ownedBy, ModelCapabilities capabilities, String? name, String? description, int maxContextLength, List<String> aliases, String? deprecation, double? defaultModelTemperature, String type, String job, String root, bool archived)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult? Base(String id, String model, int? created, String ownedBy, ModelCapabilities capabilities, String? name, String? description, int maxContextLength, List< String> ? aliases, String? deprecation, double? defaultModelTemperature, String type)?, TResult? FT(String id, String object, int? created, String ownedBy, ModelCapabilities capabilities, String? name, String? description, int maxContextLength, List<String> aliases, String? deprecation, double? defaultModelTemperature, String type, String job, String root, bool archived)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited