mirror of
https://github.com/Laurent2916/nio-llm.git
synced 2024-11-09 23:12:05 +00:00
🐛 preemptively check if rel_type
is in event.source["content"]["m.relates_to"]
This commit is contained in:
parent
904dde744f
commit
2d91052d6e
|
@ -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.")
|
||||
|
|
Loading…
Reference in a new issue