Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
153 views

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

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

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

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

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 → ...
Loiic's user avatar
  • 11
0 votes
0 answers
170 views

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

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

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

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-...

AltStyle によって変換されたページ (->オリジナル) /