Skip to content

Commit

Permalink
Fix issue with "continue" feature on llama.cpp endpoints (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin committed Mar 5, 2024
1 parent 9c5a826 commit 714ff2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/server/endpoints/llamacpp/endpointLlamacpp.ts
Expand Up @@ -110,6 +110,7 @@ export function endpointLlamacpp(
};
if (data.stop) {
stop = true;
output.token.special = true;
reader?.cancel();
}
yield output;
Expand Down

0 comments on commit 714ff2c

Please sign in to comment.