From: Georgi Gerganov Date: Fri, 31 Oct 2025 08:54:19 +0000 (+0200) Subject: server : don't print user inputs to console (#16871) X-Git-Tag: upstream/0.0.7011~111 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=c22473b580807929fd9e3a3344a48e8cfbe6c88f;p=pkg%2Fggml%2Fsources%2Fllama.cpp server : don't print user inputs to console (#16871) --- diff --git a/tools/server/server.cpp b/tools/server/server.cpp index cb49254a..92d30664 100644 --- a/tools/server/server.cpp +++ b/tools/server/server.cpp @@ -3796,7 +3796,7 @@ struct server_context { // when the prompt prefix does not match, print the tokens around the mismatch // this is useful for debugging prompt caching - { + if (slots_debug) { const int np0 = std::max(n_past - 4, 0); const int np1 = std::min(n_past + 6, std::min(slot.prompt.tokens.size(), slot.task->tokens.size()));