From 618895f0a13a9f6b73b52c85bc647ea5485a4f37 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Sat, 20 May 2023 20:03:59 -0400 Subject: [PATCH] Turn off the debugging messages by default. --- gpt4all-chat/chatllm.cpp | 8 ++++---- gpt4all-chat/localdocs.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gpt4all-chat/chatllm.cpp b/gpt4all-chat/chatllm.cpp index 8291200d..481a2256 100644 --- a/gpt4all-chat/chatllm.cpp +++ b/gpt4all-chat/chatllm.cpp @@ -421,15 +421,15 @@ bool ChatLLM::prompt(const QString &prompt, const QString &prompt_template, int3 m_ctx.repeat_penalty = repeat_penalty; m_ctx.repeat_last_n = repeat_penalty_tokens; m_modelInfo.model->setThreadCount(n_threads); -//#if defined(DEBUG) +#if defined(DEBUG) printf("%s", qPrintable(instructPrompt)); fflush(stdout); -//#endif +#endif m_modelInfo.model->prompt(instructPrompt.toStdString(), promptFunc, responseFunc, recalcFunc, m_ctx); -//#if defined(DEBUG) +#if defined(DEBUG) printf("\n"); fflush(stdout); -//#endif +#endif m_responseLogits += m_ctx.logits.size() - logitsBefore; std::string trimmed = trim_whitespace(m_response); if (trimmed != m_response) { diff --git a/gpt4all-chat/localdocs.cpp b/gpt4all-chat/localdocs.cpp index 3643c834..8527fa07 100644 --- a/gpt4all-chat/localdocs.cpp +++ b/gpt4all-chat/localdocs.cpp @@ -4,7 +4,7 @@ #include #include -#define DEBUG +//#define DEBUG //#define DEBUG_EXAMPLE #define LOCALDOCS_VERSION 0