79557435

Date: 2025-04-05 19:37:57
Score: 0.5
Natty:
Report link

To add on this thread, to anyone struggling with this in 2025 and with the lack of information from google and thanks to some info spared on internet I found that you can just set your headers as follow (Here I'm using express)

it is important that status is 200. Now this is streaming for me on a prompt ui for IA using vercel ui sdk.

Not need of SSE or GRCP

  res.status(200);
  res.setHeader('transfer-encoding', 'chunked');
  res.setHeader('Content-Type', 'plain/text');
  res.setHeader('cache-control', 'no-cache');
  res.setHeader('x-accel-buffering', 'no');
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Oscar Cruz