Browse Source

fix: antiprompt does not work in stateless executor.

tags/v0.5.1
Yaohui Liu 2 years ago
parent
commit
b60c8bd285
No known key found for this signature in database GPG Key ID: E86D01E1809BD23E
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      LLama/LLamaStatelessExecutor.cs

+ 1
- 1
LLama/LLamaStatelessExecutor.cs View File

@@ -87,7 +87,7 @@ namespace LLama
string last_output = "";
foreach (var token in lastTokens)
{
last_output += Utils.PtrToString(NativeApi.llama_token_to_str(_model.NativeHandle, id), _model.Encoding);
last_output += Utils.PtrToString(NativeApi.llama_token_to_str(_model.NativeHandle, token), _model.Encoding);
}

bool should_break = false;


Loading…
Cancel
Save