From b51ed462f7deeba6b2fcfea2c3611f3ef245ffb8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 19 Jun 2025 16:13:36 +0200 Subject: [PATCH] Handle response failure. --- profiler/src/profiler/TracyLlm.cpp | 1 + 1 file changed, 1 insertion(+) 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 ) {