Skip to main content

text-event-stream

github.com

A demo repository showcasing the usage of the 'Content-Type: text/event-stream' HTTP response header, which enables streaming responses like those seen in AI tools such as ChatGPT or Tencent Yuanbao.

Developer Tools & APIsOpen source#http-header#streaming-api#sse
Visit website
text-event-stream preview

https://github.com/ppzreboot/text-event-stream像 ChatGPT 或腾讯元宝之类的 AI 工具,我们问问题时,腾讯元宝会把回答分成一小片、一小片的, 看起来像断断续续的, 就像在试卷上写答案。这并不是什么高深的技术,只是一个 http 响应头: json{ "Content-Type": "text/event-stream"}这个仓库的代码,就是演示这个响应头的用法(3 分钟读完)。

More in Developer Tools & APIs

SolveHub

API for CAPTCHA and anti-bot tasks in authorized testing

Dev Tools ·

liarjs.dev

Scanner that cross-checks browser JavaScript fingerprint against network layer

Dev Tools ·

AntiBrow

Antidetect browser for managing multiple browser identities with real-device

Dev Tools ·

HostlessWP

Open source CLI to move WordPress to Cloudflare Workers

Dev Tools ·

deed.page

Permanent web hosting with an API for AI agents

Dev Tools ·

Rowflare

Open-source Airtable alternative running on your Cloudflare account

Dev Tools ·