CactusCompletionParams constructor
const
CactusCompletionParams({
- required List<
ChatMessage> messages, - int maxPredictedTokens = 256,
- int? threads,
- int? seed,
- double? temperature,
- int? topK,
- double? topP,
- double? minP,
- double? typicalP,
- int? penaltyLastN,
- double? penaltyRepeat,
- double? penaltyFreq,
- double? penaltyPresent,
- int? mirostat,
- double? mirostatTau,
- double? mirostatEta,
- bool? ignoreEos,
- int? nProbs,
- List<
String> ? stopSequences, - String? grammar,
- String? chatTemplate,
- CactusTokenCallback? onNewToken,
- ResponseFormat? responseFormat,
- 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,
});