Explorar el Código

server : don't print user inputs to console (#16871)

Georgi Gerganov hace 2 meses
padre
commit
c22473b580
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tools/server/server.cpp

+ 1 - 1
tools/server/server.cpp

@@ -3796,7 +3796,7 @@ struct server_context {
 
 
                                 // when the prompt prefix does not match, print the tokens around the mismatch
                                 // when the prompt prefix does not match, print the tokens around the mismatch
                                 // this is useful for debugging prompt caching
                                 // this is useful for debugging prompt caching
-                                {
+                                if (slots_debug) {
                                     const int np0 = std::max<int>(n_past - 4, 0);
                                     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()));
                                     const int np1 = std::min<int>(n_past + 6, std::min(slot.prompt.tokens.size(), slot.task->tokens.size()));