diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index c470ba02..1c86f943 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -9,9 +9,12 @@ namespace tracy { TracyLlm::TracyLlm() - : m_ollama( std::make_unique( s_config.llmAddress ) ) - , m_valid( m_ollama->is_running() ) + : m_valid( false ) { + if( !s_config.llm ) return; + + m_ollama = std::make_unique( s_config.llmAddress ); + m_valid = m_ollama->is_running(); } TracyLlm::~TracyLlm()