You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use exyteChat as the view for AI chat, and the AI API returns answers through server-side events. This means that message need to be combined dynamically(spliced text).
Currently, exyteChat uses @Published var messages:[Message] to observe changes in messages and update the view. Directly modifying the text of the message does not trigger a view update. How should I modify it to achieve this requirement?
Have a nice day!
Thanks!
The text was updated successfully, but these errors were encountered:
I use exyteChat as the view for AI chat, and the AI API returns answers through server-side events. This means that message need to be combined dynamically(spliced text).
Currently, exyteChat uses
@Published var messages:[Message]
to observe changes in messages and update the view. Directly modifying the text of the message does not trigger a view update. How should I modify it to achieve this requirement?Have a nice day!
Thanks!
The text was updated successfully, but these errors were encountered: