copyWith method

ConfigEdits copyWith({
  1. bool? isText,
  2. int? n,
  3. double? temperature,
  4. int? topP,
})

Generate a new ConfigEdits object from the original object.

Implementation

ConfigEdits copyWith({
  bool? isText,
  int? n,
  double? temperature,
  int? topP,
}) {
  return ConfigEdits(
    isText: isText ?? this.isText,
    n: n ?? this.n,
    temperature: temperature ?? this.temperature,
    topP: topP ?? this.topP,
  );
}