diff --git a/src/nio_llm/client.py b/src/nio_llm/client.py index bbc72f2..d374cb7 100644 --- a/src/nio_llm/client.py +++ b/src/nio_llm/client.py @@ -99,6 +99,7 @@ class LLMClient(AsyncClient): # ignore thread messages if ( "m.relates_to" in event.source["content"] + and "rel_type" in event.source["content"]["m.relates_to"] and event.source["content"]["m.relates_to"]["rel_type"] == "m.thread" ): logger.debug("Ignoring thread message.")