You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I'm try to use vercel/ai with @expo the issue is @expo use @remix-run/node as part of the server api runtime which rely on @remix-run/web-stream and cause ReadableStream incompatibility :
TypeError: First parameter has member 'readable' that is not a ReadableStream.
at assertReadableStream (/Users/x/test-ai/node_modules/web-streams-polyfill/src/lib/validators/readable-stream.ts:5:11)
at convertReadableWritablePair (/Users/x/test-ai/node_modules/web-streams-polyfill/src/lib/validators/readable-writable-pair.ts:15:3)
at ReadableStream.pipeThrough (/Users/x//test-ai/node_modules/web-streams-polyfill/src/lib/readable-stream.ts:223:23)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
I'm try to use vercel/ai with @expo the issue is @expo use
@remix-run/node
as part of the server api runtime which rely on@remix-run/web-stream
and causeReadableStream
incompatibility :ai/packages/provider-utils/src/response-handler.ts
Line 98 in 4d458df
The error being raised is:
Is there a way for solve the issue ?
Beta Was this translation helpful? Give feedback.
All reactions