Comments (7)
@leecobaby can you verify the version of
chatgpt
package you're using?
Hello, I was submitting an issue with v2.0.1, but now my project is working after upgrading to v2.0.4.
Thank you so much for the fix. ๐
from chatgpt-api.
Thanks for the report, Leeco.
I'm guessing this has something to do with either Vercel's eager lambda bundling leaving out undici, which we import asynchronously โย or undici itself within this environment.
Needs investigation.
from chatgpt-api.
Related:
- vercel/next.js#32357
- https://stackoverflow.com/questions/57664058/response-body-getreader-is-not-a-function
It's possible that the Vercel environment is polyfilling fetch
with node-fetch
, which would cause this error.
from chatgpt-api.
@leecobaby can you verify the version of chatgpt
package you're using?
from chatgpt-api.
I have a tentative fix released in https://github.com/transitive-bullshit/chatgpt-api/releases/tag/v2.0.3
I think the issue is that Vercel's Next.js Node.js environment polyfills fetch
with the non-standard node-fetch
, which was breaking support for the streaming response support. I've aded a special case to test for this and handle it gracefully.
Please let me know if you're still experiencing issues after upgrading to latest
.
from chatgpt-api.
Update: I meant v2.0.3. There was a problem with v2.0.2.
from chatgpt-api.
That's great to hear ๐ช
I've also verified that the package works as expected using both next dev
locally as well as when deployed to Vercel as a serverless function. I haven't tried it out on edge functions yet.
from chatgpt-api.
Related Issues (20)
- has no exported member 'ChatGPTUnofficialProxyAPI'
- Model GPT-4 does not exist or you do not have access to it HOT 5
- Add plugins, images, code interpretation etc.. feacture for UnofficialProxy
- CJS Incompatibity Error HOT 1
- Streaming a response from onProgress return duplicates
- ChatGPT error 500: {"detail":"Hmm...something seems to have gone wrong."} HOT 3
- ChatGPT 4 vision - send image? HOT 4
- Upload image HOT 1
- Custom messageId saved into parentMessageId HOT 2
- Instead of sending a new Message, appended to last message. HOT 1
- Error: It is recommended to upgrade to the latest PandoraNext: https://github.com/pandora-next/deploy HOT 7
- After call AbortController. abort(), it did not stop immediately and only returned after timeout HOT 1
- ChatGPTUnofficialProxyAPI Not Working HOT 6
- support pip
- It is not work when use gpt-4 model๏ผha ha HOT 3
- any plan to support GPT-V?
- assistant
- Bug HOT 2
- [ChatGPTUnofficialProxyAPI] ChatGPT Web has switched from SSE to WebSockets.
- problem when execute `npx tsx demos/demo.ts`
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 chatgpt-api.