Git Product home page Git Product logo

Comments (6)

lgrammel avatar lgrammel commented on August 16, 2024

Thanks for the bug report! Which Next.js version are you using?

from ai.

steveoOn avatar steveoOn commented on August 16, 2024

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.

lgrammel avatar lgrammel commented on August 16, 2024

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.

steveoOn avatar steveoOn commented on August 16, 2024

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.

Vochsel avatar Vochsel commented on August 16, 2024

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.

froggy1014 avatar froggy1014 commented on August 16, 2024

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

ScreenRecording2024-07-04at2 28 17AM-ezgif com-video-to-gif-converter (1)

left: vercel / right : netlify

"@ai-sdk/openai": "^0.0.33",
"ai": "^3.2.7",

downgrade did not work tho.

from ai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.