AI SDK without using AI?
Unanswered
Himalayan posted this in #help-forum
HimalayanOP
I am not sure if this makes sense but I actually want to use the AI SDK without using any AI model. I asked this in the
"If you want to use the Vercel AI SDK for creating a chat interface without using an AI model, you can do so by replacing the OpenAI API call with your own API call.
The Vercel AI SDK is designed to help developers build conversational streaming user interfaces in JavaScript and TypeScript. It doesn't necessarily require an AI model to function. You can use it to build a chat interface that interacts with any API.
Unfortunately, the provided knowledge sources do not include a specific example of using the Vercel AI SDK without an AI model."
Basically I want to reuse the awesome chat-like components but just make rest call to regular API endpoint and use that data to render/stream a response to the user. Is such a thing possible? Any example/repo/blog post I can fallback onto?
gpt-help group and this was the AI response: "If you want to use the Vercel AI SDK for creating a chat interface without using an AI model, you can do so by replacing the OpenAI API call with your own API call.
The Vercel AI SDK is designed to help developers build conversational streaming user interfaces in JavaScript and TypeScript. It doesn't necessarily require an AI model to function. You can use it to build a chat interface that interacts with any API.
Unfortunately, the provided knowledge sources do not include a specific example of using the Vercel AI SDK without an AI model."
Basically I want to reuse the awesome chat-like components but just make rest call to regular API endpoint and use that data to render/stream a response to the user. Is such a thing possible? Any example/repo/blog post I can fallback onto?
2 Replies
i dont have an example for you but you can try this: https://sdk.vercel.ai/providers/community-providers/custom-providers
HimalayanOP
Thanks, will look into this 🙂