diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index 24e28b39..c79df7d4 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -1169,6 +1169,16 @@ void TracyLlm::SendMessage() if( msg.contains( "model" ) ) msg.erase( "model" ); } + if( needSummary && chat.size() == 2 ) + { + auto& content = chat[1]["content"].get_ref(); + if( content.size() <= 30 ) + { + m_summary = content; + needSummary = false; + } + } + if( needSummary ) { auto query = chat;