mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-09 03:47:25 +00:00
Check that we're not null. This is necessary because the loop can make us recursive. Need to fix that.
This commit is contained in:
parent
99cd555743
commit
8467e69f24
@ -134,6 +134,7 @@ void ChatGPT::prompt(const std::string &prompt,
|
|||||||
qDebug() << "ChatGPT::prompt end network request";
|
qDebug() << "ChatGPT::prompt end network request";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (m_ctx)
|
||||||
m_ctx->n_past += 1;
|
m_ctx->n_past += 1;
|
||||||
m_context.append(QString::fromStdString(prompt));
|
m_context.append(QString::fromStdString(prompt));
|
||||||
m_context.append(m_currentResponse);
|
m_context.append(m_currentResponse);
|
||||||
|
Loading…
Reference in New Issue
Block a user