Don't crash right out of the installer ;)

pull/520/head
Adam Treat 1 year ago
parent 4cf7e122a9
commit a02b0c14ca

@ -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();
}

Loading…
Cancel
Save