Check if the trimmed version is empty.

modelclone
Adam Treat 1 year ago committed by AT
parent be395c12cc
commit 8eb0844277

@ -789,7 +789,7 @@ void ChatLLM::processSystemPrompt()
return;
const std::string systemPrompt = MySettings::globalInstance()->modelSystemPrompt(m_modelInfo).toStdString();
if (systemPrompt.empty()) {
if (QString::fromStdString(systemPrompt).trimmed().isEmpty()) {
m_processedSystemPrompt = true;
return;
}

Loading…
Cancel
Save