Move current time back to system prompt.

This commit is contained in:
Bartosz Taudul
2025-06-08 23:23:09 +02:00
parent f04dcc7c42
commit 6255b4c67c

View File

@@ -683,10 +683,10 @@ void TracyLlm::SendMessage( std::unique_lock<std::mutex>& lock )
{
inject += "<SYSTEM_REMINDER>\n";
inject += std::string( m_systemReminder->data(), m_systemReminder->size() );
inject += "The current time is: " + m_tools->GetCurrentTime() + "\n";
inject += "</SYSTEM_REMINDER>\n";
}
chat.front()["content"].get_ref<std::string&>().append( "\n\nThe current time is: " + m_tools->GetCurrentTime() + "\n" );
chat.back()["content"].get_ref<std::string&>().insert( 0, inject );
nlohmann::json req;