Allow creating TracyLlm when LLM is disabled.

This commit is contained in:
Bartosz Taudul
2025-05-11 17:09:22 +02:00
parent 6b0589f5eb
commit d72898087f

View File

@@ -9,9 +9,12 @@ namespace tracy
{
TracyLlm::TracyLlm()
: m_ollama( std::make_unique<Ollama>( s_config.llmAddress ) )
, m_valid( m_ollama->is_running() )
: m_valid( false )
{
if( !s_config.llm ) return;
m_ollama = std::make_unique<Ollama>( s_config.llmAddress );
m_valid = m_ollama->is_running();
}
TracyLlm::~TracyLlm()