diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index a528eedb..ab6e6811 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -781,11 +781,10 @@ void TracyLlm::SendMessage( std::unique_lock& lock ) bool res; try { + m_chat.back()["content"].get_ref().append( "\n\n\nThe current time is: " + m_tools->GetCurrentTime() + "\n\n" ); auto chat = m_chat; AddMessageBlocking( "", "assistant", lock ); - chat.front()["content"].get_ref().append( "\n\nThe current time is: " + m_tools->GetCurrentTime() + "\n" ); - nlohmann::json req; req["model"] = m_api->GetModels()[m_modelIdx].name; req["messages"] = std::move( chat );