This doesn't actually cover the most important part, which is where the response to a chat shows up. Has anyone figured this out? I only looked briefly, but AFAICT, it doesn't show up in the response data in Chrome or Firefox DevTools. I figured it was maybe using WebSockets or Server Sent Events, which apparently don't show up in DevTools in some cases (?). I think this is a Chrome bug [0] [1] and also a Firefox bug…
Probably because they're using a polyfill[0][1] to handle the event stream. [0] https://stackoverflow.com/questions/55201372/event-stream-da... [1] https://github.com/EventSource/eventsource/issues/94
Everything ChatGPT – under the hood of the ChatGPT web app
21–30 of 31 posts
Re: Everything ChatGPT – under the hood of the ChatGPT web app
#22This doesn't actually cover the most important part, which is where the response to a chat shows up. Has anyone figured this out? I only looked briefly, but AFAICT, it doesn't show up in the response data in Chrome or Firefox DevTools. I figured it was maybe using WebSockets or Server Sent Events, which apparently don't show up in DevTools in some cases (?). I think this is a Chrome bug [0] [1] and also a Firefox bug…
see API docs: https://platform.openai.com/docs/api-reference/chat/create
> If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. See the OpenAI Cookbook for example code.
Re: Everything ChatGPT – under the hood of the ChatGPT web app
#23This doesn't actually cover the most important part, which is where the response to a chat shows up. Has anyone figured this out? I only looked briefly, but AFAICT, it doesn't show up in the response data in Chrome or Firefox DevTools. I figured it was maybe using WebSockets or Server Sent Events, which apparently don't show up in DevTools in some cases (?). I think this is a Chrome bug [0] [1] and also a Firefox bug…
they are using Server Side Events (SSE) to stream the text. see API docs: https://platform.openai.com/docs/api-reference/chat/create > If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. See the OpenAI Cookbook for example code.
https://firefox-source-docs.mozilla.org/devtools-user/networ...
Re: Everything ChatGPT – under the hood of the ChatGPT web app
#24This doesn't actually cover the most important part, which is where the response to a chat shows up. Has anyone figured this out? I only looked briefly, but AFAICT, it doesn't show up in the response data in Chrome or Firefox DevTools. I figured it was maybe using WebSockets or Server Sent Events, which apparently don't show up in DevTools in some cases (?). I think this is a Chrome bug [0] [1] and also a Firefox bug…
Re: Everything ChatGPT – under the hood of the ChatGPT web app
#25The web app also has built in support for LaTeX rendering (it uses KaTeX). See this forum post: https://community.openai.com/t/new-feature-properly-shown-ma... You can get ChatGPT to output conforming LaTeX expressions using the following prompt: Could you please use the specific LaTeX math mode delimiters for your response? LaTex math mode specific delimiters as following 1. inline math mode : `\(` and `\)` 2. displ…
Re: Everything ChatGPT – under the hood of the ChatGPT web app
#26Interesting—so it seems there is an 'exploit' which lets non-Plus subscribers hit an internal API endpoint to send themselves a special Plus login URL (for times of peak demand): https://github.com/terminalcommandnewsletter/everything-chat...
Re: Everything ChatGPT – under the hood of the ChatGPT web app
#27Re: Everything ChatGPT – under the hood of the ChatGPT web app
#28The web app also has built in support for LaTeX rendering (it uses KaTeX). See this forum post: https://community.openai.com/t/new-feature-properly-shown-ma... You can get ChatGPT to output conforming LaTeX expressions using the following prompt: Could you please use the specific LaTeX math mode delimiters for your response? LaTex math mode specific delimiters as following 1. inline math mode : `\(` and `\)` 2. displ…
In some of the ChatGPT client-side JS (visible in the Debugger tab of DevTools), I could see references like `\triangle`. However, asking ChatGPT to print either as it is just prints the text itself.
Re: Everything ChatGPT – under the hood of the ChatGPT web app
#29The web app also has built in support for LaTeX rendering (it uses KaTeX). See this forum post: https://community.openai.com/t/new-feature-properly-shown-ma... You can get ChatGPT to output conforming LaTeX expressions using the following prompt: Could you please use the specific LaTeX math mode delimiters for your response? LaTex math mode specific delimiters as following 1. inline math mode : `\(` and `\)` 2. displ…
In some of the ChatGPT client-side JS (visible in the Debugger tab of DevTools), I could see references like `\triangle`. However, asking ChatGPT to print either as it is just prints the text itself.
Re: Everything ChatGPT – under the hood of the ChatGPT web app
#30The website also calls the moderation API from the client side with the response returned from its conversation API. So if you simply block the request to the moderation endpoint in dev tools, do they still have additional built-in monitoring?