diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index a76e3409..0d0e28b7 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -754,6 +754,7 @@ void TracyLlm::SendMessage( std::unique_lock& lock ) res = m_api->ChatCompletion( req, [this]( const nlohmann::json& response ) -> bool { return OnResponse( response ); }, m_modelIdx ); lock.lock(); + if( !res ) m_responding = false; } catch( std::exception& e ) {