News for hackers. Stuff that matters.
Re:Server Sent Events by asplake on Monday May 15, 2023 @03:41PM (#35953446)
Re:Server Sent Events by marpstar on Monday May 15, 2023 @04:02PM (#35953716)
My first thought was ChatGPT API's `stream` option: https://platform.openai.com/docs/api-reference/completions/c...
Re:Server Sent Events by corentin88 on Tuesday May 16, 2023 @04:47AM (#35959168)
OP here. I was looking at Anthropic's website as a result of https://news.ycombinator.com/item?id=35948742

Turns out in their FAQ, they have this:

> Our API is designed to be a backend that incorporates Claude into any application you’ve developed. Our application sends text to our API, then receives a response via *server-sent events*, a streaming protocol for the web. We have API documentation with drop-in example code in Python and Typescript to get you started.

Was curious what it was and thought it was probably worth sharing.

Didn't knew OpenAI uses the same mechanism.