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.
This commit is contained in:
Max 2025-01-23 18:15:26 +08:00
parent 1f9810c26c
commit b679771232

View file

@ -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: