toJson method

Map<String, Object?> toJson()

Converts this configuration to JSON-compatible values.

Implementation

Map<String, Object?> toJson() {
  return {
    'topK': topK,
    'topP': topP,
    'temperature': temperature,
    'seed': seed,
  };
}