Go into the “Sources” tab and search for the file main.590748c4.js
Ctrl+F (Search) for the exact line: return I[e]
Once localized, place a breakpoint (place a red dot on the left side of the code - clicking)
Move over to the browser window and move the “Maximum length” slider. It should gray the screen instantly and stop at the breakpoint you just set, just like in the image below:
Great! You now have access to the scope variables. Type following into the “Console”: I = E.
If successful, you should see following response:
If you’re getting an undefined error, the breakpoint didn’t trigger and you don’t have access to the scope and you should start over.
Remove the breakpoint (the red dot, else it will pause again).
Finally, press the “Play/Triangle” icon at the top of the browser or hit F8 to continue.
I tried to write a script which can be pasted inside the console alone, but the scopes wouldn’t let me (inside anonymous function calls, etc), so it requires more steps. But hey, at least it works!
Note that this change does not persist between tab/browser closes. Do it once and leave the browser open. It’s possible to retain the changes by making a local copy and then letting it load that instead, but let’s not get into that.
Also, some lengths are not really working server-side’ish, like the GPT 128k preview.
EDIT: Not needed anymore. They fixed it. That was fast!
Just limiting it without telling anybody why is not really great.
I get helping novices, but just limiting it for all users, even those who had months of experience with this tool, is just bad.
At least include a toggle somewhere, in the lines of: “I understand that a loop can cost me literal dollars in 128k mode, but I understand and want to continue”.