Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement dynamic message? #104

Open
gzlboy opened this issue Oct 14, 2024 · 1 comment · May be fixed by #112
Open

How to implement dynamic message? #104

gzlboy opened this issue Oct 14, 2024 · 1 comment · May be fixed by #112

Comments

@gzlboy
Copy link
Contributor

gzlboy commented Oct 14, 2024

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!

@xiongxiongjiang
Copy link

me too

@xiongxiongjiang xiongxiongjiang linked a pull request Nov 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants