Skip to content

Commit 3807c3d

Browse files
authored
server : respect --special cli arg (#8553)
1 parent e02b597 commit 3807c3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ struct server_context {
11821182

11831183
bool process_token(completion_token_output & result, server_slot & slot) {
11841184
// remember which tokens were sampled - used for repetition penalties during sampling
1185-
const std::string token_str = llama_token_to_piece(ctx, result.tok, false);
1185+
const std::string token_str = llama_token_to_piece(ctx, result.tok, params.special);
11861186
slot.sampled = result.tok;
11871187

11881188
// search stop word and delete it

0 commit comments

Comments
 (0)