Only using the server side #658
markNZed
started this conversation in
Ideas & Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm refactoring some code and wanted to replace a node package with Vercel ai. It was a little painful to see how to "hack" this in. Basically it is reading from the stream on the server and calling existing routines for sending over a websocket from the callbacks the OpenAIStream stream provides:
Perhaps this is useful for someone and perhaps there could be a small addition to the docs or an example for replacing just the backend. I guess others will want to refactor code that is using other libraries. I expect to refactor further to use Vercel ai on the frontend but it needs to be done step by step.
Beta Was this translation helpful? Give feedback.
All reactions