Closed ian-pascoe closed 19 hours ago
Hi! I just tried this solid js example and it works for me:
Can you inspect the data that's being transferred to the client in the chrome network tab?
So after some playing around, the way the SDK stores the messages (in a signal) is not optimal for Solidjs. If you display the messages in the <For/>
control flow primitive, the entire list rerenders every time it changes (very anti-solid).
I have been trying to stop this by transferring the messages signal into a store in my code OR use @solidjs-primitives/keyed, but this causes things like the message annotations and message tool invocations not to update at all. The message content does update, however.
Feel free to submit a PR that changes this behavior in our solid implementation.
@lgrammel please review the PR attached
Description
Code example
My repository is here: https://github.com/spirit-led-software/theaistudybible
See:
AI provider
@ai-sdk/solid 1.0.1
Additional context
No response