mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-18 03:25:46 +00:00
Check if the trimmed version is empty.
This commit is contained in:
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…
Reference in New Issue
Block a user