GenerationSettings constructor

const GenerationSettings({
  1. double temperature = 0.7,
  2. int topK = 40,
  3. double topP = 0.9,
  4. int maxTokens = 128,
  5. double repeatPenalty = 1.1,
})

Creates generation settings. All parameters are optional and fall back to conservative defaults.

Implementation

const GenerationSettings({
  this.temperature = 0.7,
  this.topK = 40,
  this.topP = 0.9,
  this.maxTokens = 128,
  this.repeatPenalty = 1.1,
});