vercel / ai-chatbot

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

huggingface support #338

Closed oscarwang22 closed 1 week ago

oscarwang22 commented 1 month ago

Hi, Recently, I tried to make the platform use models from Huggingface instead of OpenAI. Unfortunately, it did not work as I intended. Could anyone help with how I can modify the template to use huggingface models instead?

leerob commented 1 week ago

Hey there, we don't plan to switch this to Hugging Face, but with the AI SDK you can change to any model you want.

https://sdk.vercel.ai/providers/legacy-providers/hugging-face