9 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
153
views
Vercel AI-SDK not streaming with Capacitor
I'm working on Nuxt.js/Vue app using Vercel's AI-SDK and I'm wrapping it in Capacitor.
When I test the app in a browser (Chrome/Safari/Firefox) chat is working perfectly. When I build the iOS app and ...
1
vote
1
answer
304
views
How to limit input prompt tokens in Vercel AI SDK?
I'm using Vercel's AI SDK to generate streamed responses from various providers and models. While the streamText function allows setting maxTokens for output, I’m unsure how to control or limit the ...
0
votes
0
answers
97
views
AI SDK loadApiKey Throws API Key Missing Error in Vite (Vue 3)
I am building a Vue app with Vite, I intend to have a chatbot in my app. but I keep getting the following error:
AI_LoadAPIKeyError: Google Generative AI API key is missing. Pass it using the 'apiKey' ...
1
vote
1
answer
582
views
Issue with streamText in OpenRouter AI SDK on Vercel (AI_APICallError: Not Found)
I’m using OpenRouter AI SDK in my Vercel project to implement AI-powered chat streaming. While textGenerate works fine, streamText fails with the following error:
Error from the streamText: ...
1
vote
0
answers
187
views
AI SDK: Prevent LLM from Returning Tool Output as Markdown While Keeping It as a UI Component
The AI SDK streamText() returns two parts inside message:
Tool Result → A structured object containing the relevant data (this should be rendered as a dedicated UI component).
Text Result from LLM → ...
0
votes
0
answers
170
views
I'm using cohere on the vercel ai-sdk on the client and server. But the createDataStreamResponse returns an empty string in the message.content
I'm using Cohere's API to generate a streaming response in my backend (Nest.js + TypeScript). However, the assistant's response often returns an empty message content despite receiving a valid stream ...
1
vote
1
answer
1k
views
How to Stream Responses to the Frontend Using streamText in Next.js?
Problem Statement:
I am building a chatbot in Next.js using ai and @ai-sdk/google. The chatbot should stream responses from Gemini (gemini-1.5-flash-8b) to the frontend. I confirmed that the response ...
0
votes
0
answers
40
views
Why is AI SDK RSC causing a comma to transform a string into an array?
so I have this tool
const display = await submitUserMessage(
`myTool pizza, chips`,
)
expecting in my generate function to receive it as "pizza, chips"
generate: async function* (x) {
...
0
votes
1
answer
210
views
AI SDK 'responseMessages' is deprecated
I've been using the responseMessages return value for the generateText and `streamText' methods for a while now but apparently it's deprecated. What do I use instead?
https://sdk.vercel.ai/docs/ai-sdk-...