mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-29 12:53:48 +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;
|
return;
|
||||||
|
|
||||||
const std::string systemPrompt = MySettings::globalInstance()->modelSystemPrompt(m_modelInfo).toStdString();
|
const std::string systemPrompt = MySettings::globalInstance()->modelSystemPrompt(m_modelInfo).toStdString();
|
||||||
if (systemPrompt.empty()) {
|
if (QString::fromStdString(systemPrompt).trimmed().isEmpty()) {
|
||||||
m_processedSystemPrompt = true;
|
m_processedSystemPrompt = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user