CactusCompletionParams constructor

const CactusCompletionParams({
  1. required List<ChatMessage> messages,
  2. int maxPredictedTokens = 256,
  3. int? threads,
  4. int? seed,
  5. double? temperature,
  6. int? topK,
  7. double? topP,
  8. double? minP,
  9. double? typicalP,
  10. int? penaltyLastN,
  11. double? penaltyRepeat,
  12. double? penaltyFreq,
  13. double? penaltyPresent,
  14. int? mirostat,
  15. double? mirostatTau,
  16. double? mirostatEta,
  17. bool? ignoreEos,
  18. int? nProbs,
  19. List<String>? stopSequences,
  20. String? grammar,
  21. String? chatTemplate,
  22. CactusTokenCallback? onNewToken,
  23. ResponseFormat? responseFormat,
  24. bool? jinja,
})

Implementation

const CactusCompletionParams({
  required this.messages,
  this.maxPredictedTokens = 256,
  this.threads,
  this.seed,
  this.temperature,
  this.topK,
  this.topP,
  this.minP,
  this.typicalP,
  this.penaltyLastN,
  this.penaltyRepeat,
  this.penaltyFreq,
  this.penaltyPresent,
  this.mirostat,
  this.mirostatTau,
  this.mirostatEta,
  this.ignoreEos,
  this.nProbs,
  this.stopSequences,
  this.grammar,
  this.chatTemplate,
  this.onNewToken,
  this.responseFormat,
  this.jinja,
});