Everything ChatGPT – under the hood of the ChatGPT web app
1–10 of 31 posts
Re: Everything ChatGPT – under the hood of the ChatGPT web app
#2Re: Everything ChatGPT – under the hood of the ChatGPT web app
#3You 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. display math mode: insert linebreak after opening `$$`, `\[` and before closing `$$`, `\]`
Re: Everything ChatGPT – under the hood of the ChatGPT web app
#4Re: Everything ChatGPT – under the hood of the ChatGPT web app
#5EDIT: It's using EventSource. If you open the debugger and Cmd+Shift+F for `onmessage`, you'll find where it receives the message, and you can add a breakpoint, which you can then right click and change to a logpoint, to log the contents of the message. There is probably a one-liner you could paste into devtools to do some prototype hacking of window.EventSource, but I don't have time to figure that out atm, and can't find anything in a few quick searches of GitHub code.
EDIT EDIT: Just tried Safari, it does indeed show up as a spinner, but I still can't see the actual messages in DevTools.
[0] https://github.com/Yaffle/EventSource/issues/79
[1] https://bugs.chromium.org/p/chromium/issues/detail?id=102589...
Re: Everything ChatGPT – under the hood of the ChatGPT web app
#6This 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…
You can see the network call spin while the text loads.
edit: added name of endpoint.
Re: Everything ChatGPT – under the hood of the ChatGPT web app
#7Including screenshots of the splash screen I made to display with some tedious editing of the min'd js https://twitter.com/brain_exe_ai/status/1607573641264234496
Re: Everything ChatGPT – under the hood of the ChatGPT web app
#8Is anyone else hit by the Cloudflare "Confirm you are a human" captcha everytime they try to access ChatGPT? It's the only website where it happens to me: and I have to try several times before I get access.
Re: Everything ChatGPT – under the hood of the ChatGPT web app
#9Ah yes, lying to the users by showing them a "trash" icon and actually just hiding the conversation from them.
What a superb way to build trust from your ivory tower of moral self-righteousness about how you've decided an language model can and cannot be used (which includes such hilarious bullshit as the model declaring it cannot make jokes about any particular group when asked to make a joke about women, but happily making jokes about men all day long.)