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.
I think I have same issue, next dev working fine on local environment but somehow
generator function and initial Loading component from streamUI
is not working on Vercel PRD
it did not work on vercel PRD and same branch on netlify works as below
left: vercel / right : netlify
"@ai-sdk/openai": "^0.0.33",
"ai": "^3.2.7",
downgrade did not work tho.
from ai.
Related Issues (20)
- Bug in `streamUI` and `createStreamableUI` HOT 2
- Make `Message` `createdAt` key required HOT 1
- Streamable UI slow to update error HOT 4
- Provider APIs (`doStream`, et al.) are not usable outside of AI SDK
- Cannot use `name` field in Chat Completion messages (CoreMessage, LanguageModelV1Message)
- Registry not accepting google provider HOT 2
- Error in implementing in nodejs HOT 6
- getMutableAIState(key [keyof AI Context]) update() and done() didn't change object reference
- useAssistant: option to ignore annotations in text deltas
- Bedrock: can't use AWS metadata service for authentication HOT 1
- Save chat to database on onSetAIState is not working correctly if connection_limit is set to high HOT 3
- vLLM Provider HOT 1
- Ending `textStream.done()` in `streamUI()` causes another render in component after version `>=3.2.6`
- Add Azure Extensions to the Azure provider
- Add support for edit history
- Create a tool to summarise results HOT 6
- AI_TypeValidationError: Optional type validation in generateObject function. HOT 13
- Model Registry non-standard parameters
- Cannot use zod tuple() in tool schema HOT 2
- Vercel AI SDK Incompatibility with Latest Perplexity API Updates HOT 2
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.