Hacker News new | ask | show | jobs
by anentropic 1087 days ago
> I’d love to be able to stream a JSON response down to the client and have it be able to parse the JSON as it goes

why though?

1 comments

In a non chat setting where the LLM is performing some reasoning or data extraction it allows you to get JSON directly from the model and stream it to the UI (updating the associated UI fields as new keys come in) while caching the response server side in the exact same JSON format. It’s really simplified our stream + cache setup!