Skip to content

Commit

Permalink
Update message handling to ignore 'action' messages in Neo API assistant
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
trheyi committed Jan 23, 2025
1 parent 1f9810c commit b679771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo/message/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b679771

Please sign in to comment.