From aca0e3919017d64a8aea71f32fd4021c338556b0 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 30 Jun 2026 21:06:43 +0200 Subject: [PATCH] Do not summarize very short llm queries. --- profiler/src/profiler/TracyLlm.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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;