Replies: 1 comment
-
As a workaround, you could encrypt everything that you store in the AIState yourself (and then decrypt when necessary), but obviously that's a bit cumbersome. It would be nice if the SDK provided an out-of-the-box solution to fully encrypt/ the AIState when it goes to the client, and then decrypt it when it's pushed back to the server. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://sdk.vercel.ai/docs/concepts/ai-rsc#ai-and-ui-state mentioned that AIState is to securely maintain server-side AI data and operations. It's default to be accessed/modified on both Server and Client. However, how do we change this default behavior to make AI State only available on server-side environment? I suppose it would enable AI State to contain values that are not serialize, too (although it's not important to this question).
Beta Was this translation helpful? Give feedback.
All reactions