Turn off the debugging messages by default.

This commit is contained in:
Adam Treat 2023-05-20 20:03:59 -04:00 committed by AT
parent c6df4645c8
commit 618895f0a1
2 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -4,7 +4,7 @@
#include <QTimer>
#include <QPdfDocument>
#define DEBUG
//#define DEBUG
//#define DEBUG_EXAMPLE
#define LOCALDOCS_VERSION 0