Replies: 3 comments
-
Any update ? |
Beta Was this translation helpful? Give feedback.
-
They now have an example here: https://sdk.vercel.ai/examples/next-app/assistants/stream-assistant-responses-with-tools#server |
Beta Was this translation helpful? Give feedback.
-
Yes, that guide is good. I will say that it has a LOT of unhandled error cases that you will have to build yourself. The first thing I suggest you do is add error handling to the openai.beta.threads.messages.create call as you will run into 'cannot add message while a run is in progress' along the same lines I've been trying to build a hook to set a readyState on the client side to prevent users from being able to submit messages while a run is in progress in the first place but I haven't cracked that yet. |
Beta Was this translation helpful? Give feedback.
-
Hi there 👋
Is there any available example on how to implement OpenAI Assistants API to use the benefits of it alongside Generative UI ai/rsc?
Here in the code comment it's says that supports Assistants API, but it's using OpenAI completions call. Does
OpenAIStream
supports Assistants streaming?Thanks 🤝
Beta Was this translation helpful? Give feedback.
All reactions