Files
imagen/package.json
T
imbytecat 5af05b2141 feat: stream gpt-image generation via SSE with keepalive
- /api/generate now responds with text/event-stream end-to-end
- forwards upstream image_generation.* / image_edit.* partial+completed events
- 20s keepalive comments survive Cloudflare's 120s proxy-read timeout
- falls back to non-streaming when upstream rejects stream/partial_images
- drops @ai-sdk/openai-compatible, @ai-sdk/react, ai (unused)
- frontend consumes SSE via fetch+ReadableStream, shows progressive preview
2026-05-18 22:44:31 +08:00

21 lines
379 B
JSON

{
"name": "ai-playground",
"module": "index.ts",
"type": "module",
"private": true,
"scripts": {
"dev": "bun --hot ./index.ts",
"start": "bun ./index.ts"
},
"devDependencies": {
"@types/bun": "^1.3.14",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"typescript": "^6.0.3"
},
"dependencies": {
"react": "^19.2.6",
"react-dom": "^19.2.6"
}
}