Search code examples
google-chromeserver-sent-events

why did not found the chatgpt event stream data in google chrome devtools


I was curious about how chatgpt push message to the client side recently. I have already read some articles that introduce ChatGPT using sse to push message to client side,does chatgpt push answser using server-sent events? if so, why did not seem the event stream data in the conversation request in google chrome?

enter image description here

by the way, the server-sent events only support get request, why the chatgpt send a post request?


Solution

  • The reason EventStreams don't show up in Chrome DevTools is because EventSource is polyfilled.

    You can find a discussion about this issue here: Event does not show up in the Chrome EventStream subtab inside the Network tab when viewing the eventstream connection · Issue #79 · Yaffle/EventSource