Do not summarize very short llm queries.

This commit is contained in:
Bartosz Taudul
2026-06-30 21:06:43 +02:00
parent ba9388cd9f
commit aca0e39190

View File

@@ -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<std::string&>();
if( content.size() <= 30 )
{
m_summary = content;
needSummary = false;
}
}
if( needSummary )
{
auto query = chat;