-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation and examples how to use Vercel AI in React #1650
Comments
You generally shouldn't us React without a framework, but very little of |
Well the title says it all, id need an example or tutorial of how to use Vercel AI SDK ( ideally with two different LLM providers lets say ollama and OpenAI). I use as component renderer React Chatbotify, and use the respective APIs to connect and get the response of the LLM. So i dont know how to setup a connection. which options, get the stream results or wait till all the information is received.... This is an example of connection to Gemini:
Also i have different providers/custom hooks i can manage them ( separate the render from logic):
I use custom hooks you can read the code : https://github.com/ejgutierrez74/workshop-react-eduardo Thanks |
hey @MaxLeiter I would also appreciate an simple example of React and vercel ai sdk if possible. I would also like to know what are the specific limitations of using nextjs ai sdk with React. |
Feature Description
Would be nice a tutorial with examples how to use Vercel AI SDK in React, with both stream request and "normal" request. I ve seen examples in Next.js but not in React.
Use Case
Examples using Vercel AI in React, connecting to different LLMS
Additional context
No response
The text was updated successfully, but these errors were encountered: