CactusCompletionParams class

Constructors

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})
const

Properties

chatTemplate String?
final
grammar String?
final
hashCode int
The hash code for this object.
no setterinherited
ignoreEos bool?
final
jinja bool?
final
maxPredictedTokens int
final
messages List<ChatMessage>
final
minP double?
final
mirostat int?
final
mirostatEta double?
final
mirostatTau double?
final
nProbs int?
final
onNewToken CactusTokenCallback?
final
penaltyFreq double?
final
penaltyLastN int?
final
penaltyPresent double?
final
penaltyRepeat double?
final
responseFormat ResponseFormat?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seed int?
final
stopSequences List<String>?
final
temperature double?
final
threads int?
final
topK int?
final
topP double?
final
typicalP double?
final

Methods

copyWith({List<ChatMessage>? messages, int? maxPredictedTokens, 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}) CactusCompletionParams
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited