vercel / ai-chatbot

A full-featured, hackable Next.js AI chatbot built by Vercel
https://chat.vercel.ai
Other
9.8k stars 2.48k forks source link

Moving away from useChat #274

Open Godrules500 opened 8 months ago

Godrules500 commented 8 months ago

Again, thank y'all for this project! I do see that y'all went a different route and removed useChat that you were using previously. Out of curiosity to learn, what was the reason for that change? I see in the AI SDK examples that it still includes it, so I was curious the pros of using it the way the ai-chat bot does.

Thanks!

athrael-soju commented 8 months ago

@Godrules500 the change is likely related to Generative UI being used, which is a welcome change.

osseonews commented 8 months ago

Also interested in understanding why they don't use useChat? It's part of the documentation on Vercel AI and all the examples there use it. What is the pros/cons of the 2 approaches - using useChat or using the implementation in this repo? What is suggested going forward? Thanks.

laholstege commented 7 months ago

I have the same questions and would be interested in an explanation

QuantGeekDev commented 5 months ago

Bump for interest

aretrace commented 1 month ago

@jeremyphilemon @jaredpalmer

🤔

🧐

🤨