LLamaPromptFormat constructor
LLamaPromptFormat(
- LLamaPromptFormatType type, {
- required String inputSequence,
- required String outputSequence,
- required String systemSequence,
- String? stopSequence,
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
Implementation
LLamaPromptFormat(
this.type, {
required this.inputSequence,
required this.outputSequence,
required this.systemSequence,
this.stopSequence,
}) {
var tempFilters = [
LLamaSequenceFilter(inputSequence),
LLamaSequenceFilter(outputSequence),
LLamaSequenceFilter(systemSequence)
];
if (stopSequence != null) {
tempFilters.add(LLamaSequenceFilter(stopSequence!));
}
_filters = tempFilters;
}