]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : don't print user inputs to console (#16871)
authorGeorgi Gerganov <redacted>
Fri, 31 Oct 2025 08:54:19 +0000 (10:54 +0200)
committerGitHub <redacted>
Fri, 31 Oct 2025 08:54:19 +0000 (10:54 +0200)
tools/server/server.cpp

index cb49254a1cc919944299abbe5d778de459a43a4d..92d30664e41f458b218b5b20160a826b60164c7e 100644 (file)
@@ -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<int>(n_past - 4, 0);
                                     const int np1 = std::min<int>(n_past + 6, std::min(slot.prompt.tokens.size(), slot.task->tokens.size()));