Check if the trimmed version is empty.

This commit is contained in:
Adam Treat 2023-07-12 14:30:11 -04:00 committed by AT
parent be395c12cc
commit 8eb0844277

View File

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