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
I verified that the issue exists in the latest chatgpt release
Verify webapp is working
I verify that the ChatGPT webapp is working properly for this account.
Environment details
Vercel Edge Functions - Node 18.x
Describe the Bug
As soon as I try to create a ChatGPTAPI instance I'm getting the following error.
error - node_modules/keyv/src/index.js (37:0) @ <unknown>
error - Class extends value #<Object> is not a constructor or null
null
warn - ./node_modules/keyv/src/index.js
Critical dependency: the request of a dependency is an expression
Import trace for requested module:
./node_modules/keyv/src/index.js
./node_modules/chatgpt/build/index.js
I might be doing something wrong, is there a Vercel Edge Function example using this package I can take a look at?
Yes, now that I see it, it is indeed related to #413. Although I did use pages/api (API Route) instead of the new Next.js 13 Route Handler (hence I created a new issue). So #413 is not a Next.js bug but is environment related I suppose. Will close this awaiting Edge support. (Vercel) Serverless Functions are not an option for me as they do not support streaming.
Verify latest release
chatgpt
releaseVerify webapp is working
Environment details
Vercel Edge Functions - Node 18.x
Describe the Bug
As soon as I try to create a ChatGPTAPI instance I'm getting the following error.
I might be doing something wrong, is there a Vercel Edge Function example using this package I can take a look at?
Sample code:
The text was updated successfully, but these errors were encountered: