Comments (6)
Thanks for the bug report! Which Next.js version are you using?
from ai.
Thanks for the bug report! Which Next.js version are you using?
"next": "14.2.4"
"react": "18.3.1"
"react-dom": "18.3.1"
"eslint": "8.43.0"
"eslint-config-next": "14.2.4"
"@types/node": "20.3.1"
"@types/react": "18.2.13"
"@types/react-dom": "18.2.6"
I'm more than happy to offer further information if needed~
from ai.
My suspicion is that the issue was caused by #1825 (comment) (which was required unfortunately, and a correct fix is currently blocked by nextjs/react capabilities).
The library downgrade issue is a side effect of introducing request headers, which required a change to the provider interfaces.
So unfortunately there is no solution, bc reverting would mean re-introducing the other bugs.
from ai.
My suspicion is that the issue was caused by #1825 (comment) (which was required unfortunately, and a correct fix is currently blocked by nextjs/react capabilities).
The library downgrade issue is a side effect of introducing request headers, which required a change to the provider interfaces.
So unfortunately there is no solution, bc reverting would mean re-introducing the other bugs.
Does this mean that in the current latest version, we cannot use the createStreamableUI
method to update UI within StreamUI
? If so, is there any recommended workaround or alternative approach for updating the UI in real-time when using the latest version of the SDK in a production environment on Vercel Edge Runtime?
from ai.
Not sure if it's the same cause, but experiencing the same symptoms.
However probably of note, I'm deploying via firebase-tools onto a Google cloud function.
I cannot use createStreamableUI
or async generator functions to stream a tool response in a streamUI
call after deploying. Things work perfectly fine with next dev
. No error is reported in server logs.
This is still shown as valid in the docs https://sdk.vercel.ai/docs/ai-sdk-rsc/streaming-react-components
Also, downgrading ai
package to 3.1.32 did not help for me.
from ai.
update to [email protected] and do not use createStreamableUI
in streamUI
tool, which will work fine with the issue.
use yield
to update the UI component instead of createStreamableUI().update()
from ai.
Related Issues (20)
- Support toDataStreamResponse from streamObject HOT 1
- streamProtocol: "text", not working with useChat & toTextStreamResponse HOT 1
- Add toolCallId and toolName to stream part of type "error" HOT 1
- Make VercelAI SDK tracing fully compatible with OTEL GenAI semantic conventions
- structuredOutput fails if schemas use `.optional()` or `.nullish()`, should be `.nullable()`. HOT 2
- Zod schema for CoreMessage
- Overloading error from Antrophic API doesn't seem to be handled HOT 4
- Edge Runtime: convertToCoreMessages() fails to process base64 image data, unlike in local development HOT 22
- Google Gemini AI: toolChoice doesn't work HOT 2
- AI State History Not Updating HOT 1
- feat: ability to define fallback model / provider
- feat: add exponential backoff to avoid rate limits HOT 1
- Add `onGeneration` hook and refactor `onFinish` in `useChat`
- AI_TypeValidationError error with streamText().toAIStream() HOT 5
- generateObject in Vercel SDK AI does not properly catch JSONParseError in Next.js HOT 3
- Errors when transpiling HOT 3
- Tool-use is incorrect when using Vercel AI SDK (OpenAI Provider) HOT 5
- structuredOutputs doesn't work with generateText and streamText HOT 2
- Message prompt for image should support OpenAI syntax or warn user HOT 5
- Support prompt caching HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ai.