Closed edouard-blocktool closed 11 months ago
It's worth noting that OpenAI Assitants API does not support streaming yet. But they're planning to add it.
I saw on X that the CEO of Vercel mentioned they are working on this.
We'll likely formally request comments and feedback on our work soon, but for now you can follow @lgrammel's great work here: #728. If anything jumps out to you as a problem (or a great addition!) please reply there so we can track it.
We've just released 2.2.24 with the first release of our experimental assistant APIs. Please give it a try and provide feedback! Proper documentation will be coming soon, but in the meantime you can refer to this doc and the example in the repo: https://github.com/vercel/ai/blob/main/examples/next-openai/app/api/assistant/assistant-setup.md
@MaxLeiter this API does not seem to support the body property in the useAssistant hook. I can't seem to access the body of the request in the route handler. Any ideas?
Edit: I was incorrectly passing FormData into the body. If you have any suggestions for passing in files to the API endpoint, it would be greatly appreciated!
@MaxLeiter any pointer on how to upload a file to the assistant?
@MaxLeiter any pointer on how to upload a file to the assistant?
I did it here; https://youtu.be/ATf2GmkMPLk?si=-rouWrn8sruC2W1v
Although this is somewhat outdated now, but the concept of file upload using this API applies.
@MaxLeiter any pointer on how to upload a file to the assistant?
I did it here; https://youtu.be/ATf2GmkMPLk?si=-rouWrn8sruC2W1v
Although this is somewhat outdated now, but the concept of file upload using this API applies.
@taylor-lindores-reeves thanks a lot. This is great. We will try. Hope steaming can be supported soon.
Can we also get the images generated by code_int. tool ?
Feature Description
The new Assistants API from OpenAI unlocks the following:
It'd be great for Vercel AI client to leverage this API through Vercel AI and still benefit from the React useChat, useCompletion constructs.
Use Case
No response
Additional context
See https://platform.openai.com/docs/assistants/overview