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 ) {