From 153e61a81f676f249219a8dde39304653e080ac0 Mon Sep 17 00:00:00 2001 From: sa_ddam213 Date: Tue, 14 Nov 2023 21:41:12 +1300 Subject: [PATCH] Make AntipromptProcessor public --- LLama/AntipromptProcessor.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/LLama/AntipromptProcessor.cs b/LLama/AntipromptProcessor.cs index 22df9993..c18c0915 100644 --- a/LLama/AntipromptProcessor.cs +++ b/LLama/AntipromptProcessor.cs @@ -3,13 +3,21 @@ using System.Collections.Generic; namespace LLama { - internal sealed class AntipromptProcessor + /// + /// AntipromptProcessor keeps track of past tokens looking for any set Anti-Prompts + /// + public sealed class AntipromptProcessor { private int _longestAntiprompt; private readonly List _antiprompts = new(); private string? _string; + + /// + /// Initializes a new instance of the class. + /// + /// The antiprompts. public AntipromptProcessor(IEnumerable? antiprompts = null) { if (antiprompts != null)