5af05b2141
- /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
21 lines
379 B
JSON
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"
|
|
}
|
|
}
|