Skip to content

Commit

Permalink
Merge pull request #288 from saddam213/access
Browse files Browse the repository at this point in the history
AntipromptProcessor access
  • Loading branch information
martindevans authored Nov 14, 2023
2 parents b44e780 + 153e61a commit 8a96617
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion LLama/AntipromptProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@

namespace LLama
{
internal sealed class AntipromptProcessor
/// <summary>
/// AntipromptProcessor keeps track of past tokens looking for any set Anti-Prompts
/// </summary>
public sealed class AntipromptProcessor
{
private int _longestAntiprompt;
private readonly List<string> _antiprompts = new();

private string? _string;


/// <summary>
/// Initializes a new instance of the <see cref="AntipromptProcessor"/> class.
/// </summary>
/// <param name="antiprompts">The antiprompts.</param>
public AntipromptProcessor(IEnumerable<string>? antiprompts = null)
{
if (antiprompts != null)
Expand Down

0 comments on commit 8a96617

Please sign in to comment.