From 5bbe81a02925816b8e2b3cc482fcf9e9542d6eb9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 17 May 2025 02:12:12 +0200 Subject: [PATCH] Don't retrieve the full image, thumbnail is enough. Too much context pollution for too little gain. --- profiler/src/profiler/TracyLlm.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index 085e5f55..48f8d4be 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -907,9 +907,6 @@ TracyLlm::ToolReply TracyLlm::SearchWikipedia( std::string query ) if( thumb.contains( "url" ) ) { auto url = "https:" + thumb["url"].get_ref(); - url = url.substr( 0, url.find_last_of( '/' ) ); - auto pos = url.find( "/thumb" ); - url.erase( pos, 6 ); auto imgData = FetchWebPage( url ); if( !imgData.empty() && imgData[0] != '<' && strncmp( imgData.c_str(), "Error:", 6 ) != 0 ) {