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:
parent
1f9810c26c
commit
b679771232
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue