diff --git a/profiler/src/profiler/TracyLlmTools.cpp b/profiler/src/profiler/TracyLlmTools.cpp index 41dd8060..90b737f4 100644 --- a/profiler/src/profiler/TracyLlmTools.cpp +++ b/profiler/src/profiler/TracyLlmTools.cpp @@ -336,7 +336,12 @@ void TracyLlmTools::ManualEmbeddingsWorker( TracyLlmApi& api ) req["model"] = m_manualEmbeddingState.model; nlohmann::json response; - api.Embeddings( req, response ); + if( !api.Embeddings( req, response ) ) + { + m_manualEmbeddingState.inProgress = false; + m_manualEmbeddingState.done = false; + return; + } auto& data = response["data"]; for( size_t j=0; j