GenerationConfig.fromJson constructor

GenerationConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GenerationConfig.fromJson(Map<String, dynamic> json) {
  return GenerationConfig(
    temperature: json['temperature'],
    maxOutputTokens: json['maxOutputTokens'],
    topP: json['topP'],
    topK: json['topK'],
    stopSequences: json['stopSequences'],
  );
}