Don't crash right out of the installer ;)

This commit is contained in:
Adam Treat 2023-04-24 21:07:16 -04:00
parent c66d7bf1ae
commit cd2e559db4

View File

@ -101,7 +101,7 @@ bool LLMObject::loadModelPrivate(const QString &modelName)
}
void LLMObject::setThreadCount(int32_t n_threads) {
if (m_llmodel->threadCount() != n_threads) {
if (m_llmodel && m_llmodel->threadCount() != n_threads) {
m_llmodel->setThreadCount(n_threads);
emit threadCountChanged();
}