Vercel AI Sdk
I wanted to use the vercel AI Sdk but I don't know if it works with wasp (some features only work with Nextjs and require RSC
I've just discovred wasp trough the opensaas template
10 Replies
Hi @alexaspalato. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry, but the information provided does not include any details about the compatibility of the Vercel AI SDK with Wasp. Wasp is a framework that currently works with React, Node.js, and Prisma, and it provides several starter templates for creating new projects, including the OpenSaaS.sh template you mentioned source (https://wasp-lang.dev/docs/project/starter-templates#available-templates). However, there's no mention of Vercel AI SDK in the provided sources.
For more specific information about Wasp's compatibility with different tools and libraries, I recommend checking out the official Wasp documentation or reaching out to the Wasp community for more detailed guidance.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @alexaspalato, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
well I can immediately share that Wasp does not support RSC at the moment. Can you share what specifically you want to use from Vercel's SDK?
this type of things: https://www.youtube.com/watch?v=br2d_ha7alw&list=WL&index=2
and it seems that it uses this https://sdk.vercel.ai/docs/ai-sdk-rsc/ai-ui-states
I will not necessarily need it for the product I want to build now, but I would like something that will support these types of features, I'm not a fan of Nextjs, I was using Remix mostly
Vercel
YouTube
Bringing React Components to AI
Learn how the Vercel AI SDK helps you move beyond plaintext and markdown chatbots to give LLMs rich, component-based interfaces.
0:00 β Introduction
0:41 β Stocks Demo
1:37 β Ecommerce Demo
2:48 β F1 Demo
3:10 β AI SDK 3.0
7:27 β Community Demos
12:10 β Conclusion
β Build your own: https://vercel.com/templates/next.js/nextjs-ai-chatbot
β Docs:...
AI SDK RSC: AI and UI States
Overview of the AI and UI states
But perhaps you have good ways to do that in wasp (I'm exploring anyway, so I don't have a favorite way to do things for the moment, but vercel as launched this, and there is not so much resources about AI for js devs!
for sure! Our expert @miho who recently built a pretty cool AI app with Wasp will be able to share more ideas π https://dev.to/wasp/wasp-x-supabase-smokin-hot-full-stack-combo-ioe
DEV Community
Wasp x Supabase: Smokinβ Hot Full-Stack Combo πΆοΈΒ π₯
TL;DR: In this post I will tell you about the hyper-productive stack for painlessly building...
Great! I'm all about productivity as I want to create products!
I also want to create content about AI as there is very little resources for js devs, and for front-end!
Taking a quick look at Vercel AI SDK, it looks like they do support other frontend frameworks next to React, so you should be fine! Yeah they have some stuff special for RSC, but I woudln't worry about that.
The only thing I am not sure if there is any requirement on is Vercel itself, does it work without deploying the app to Vercel? Hm.
well, I tried with Remix and the deployment was not working, neither the last features, also there is the part that works with RSC...
Hm yeah they don't mention remix, they do mention React, Next.js, Vue, Nuxt and SvelteKit though. Unfortunately I don't have the capcity right now to jump into trying it out, but if you learn anyting more about it I would love to hear about it!
There is the AI SDK which you use on the server e.g. in queries, actions or apis in Wasp.
There is the AI SDK RSC -> something we can't support in Wasp since we don't support RSC (yet).
And there is the AI SDK UI which you can use in React and it's a helper for when you setup the AI SDK on the server π
But this is just from reading the docs ... I haven't tried it yet with Wasp.