mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-17 22:35:36 +00:00
Allow creating TracyLlm when LLM is disabled.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user