Update main.cpp
This commit is contained in:
parent
c4efdb22af
commit
879da33ab4
1 changed files with 2 additions and 2 deletions
4
main.cpp
4
main.cpp
|
@ -250,9 +250,9 @@ int main(int argc, char ** argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// tokenize the first reverse prompt
|
// tokenize the first reverse prompt
|
||||||
auto first_antiprompt = ::llama_tokenize(ctx,"",false);
|
auto first_antiprompt = ::llama_tokenize(ctx, params.prompt, true);
|
||||||
if (!params.antiprompt.empty()) {
|
if (!params.antiprompt.empty()) {
|
||||||
auto first_antiprompt = ::llama_tokenize(ctx, params.antiprompt.front(), false);
|
auto first_antiprompt = ::llama_tokenize(ctx, params.antiprompt.front(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// enable interactive mode if reverse prompt is specified
|
// enable interactive mode if reverse prompt is specified
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue