From b679771232b5df5f0ba882d1322bfebafaf49682 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 23 Jan 2025 18:15:26 +0800 Subject: [PATCH] Update message handling to ignore 'action' messages in Neo API assistant - Modified the message handling logic to include 'action' messages in the ignore list alongside 'loading' and 'error' messages, improving the clarity of message processing. - This change enhances the robustness of the Neo API assistant by ensuring that irrelevant message types are not processed, streamlining the overall message handling workflow. --- neo/message/message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/message/message.go b/neo/message/message.go index a820f65f..300aba1b 100644 --- a/neo/message/message.go +++ b/neo/message/message.go @@ -293,7 +293,7 @@ func (m *Message) AppendTo(contents *Contents) *Message { contents.AppendFunction([]byte(m.Text)) return m - case "loading", "error": // Ignore loading and error messages + case "loading", "error", "action": // Ignore loading, action and error messages return m default: