mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-13 22:39:11 +00:00
Check if the trimmed version is empty.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user