feature request: add stream based chatgpt api
CGQAQ opened this issue · 2 comments
CGQAQ commented
ref: https://github.com/CGQAQ/chatgpt-sse-hide-example
Blocking
- Figuring out how to do SSE in Next.js on Vercel deploy
code snippet
genffy commented
genffy commented
Edge Runtime does not support node:crypto
, try to adapter it
nextjs support stream have two ways:
- API Routes with edge runtime, but have some limit unsupported-apis
- router handler streaming
FYI: the project use API Routes
without edge runtime, add this feature may cause some breaking changes on user authentication.