imagine the following: 1. you have some default tor browser 2. you visiting…
- User
imagine the following:
- you have some default tor browser
- you visiting "yuntian-deng-chatgpt4.hf.space", which is based on gradio's "class="gradio-container gradio-container-4-44-0 svelte-wpkpf6 app"".
- you chatting with gpt4o-mini for quite some extended time through context of 128k tokens in max context length, which does not resetting anything at max context length reached, tested.
- then when after you chatted enough of tons of interesting context in both user/bot messages, it mazafakin resetting for no reason in subsequent message and completely clears and flushes the entire text in chat.
this may occur spontaneously and accidentally at any context length composed from user/bot in messages, for no specific reasons, imagine that.
their gradio svelte html structure example:
"""
if (ce[0]) { ce[0].addEventListener("domchange", () => { document.body.style.padding = "0"; }); document.body.style.padding = "0"; } </script>""".
userscript to that:
"""
// ==UserScript== // @name Comprehensive Chat Management // @version 7.1 // @description Manage chat history with styles, saving, quoting, and network checks. // @match ://yuntian-deng-chatgpt4.hf.space/ // @grant none // @require https://cdn.jsdelivr.net/npm/jszip@3.10.1/dist/jszip.min.js // ==/UserScript==
(function () { 'use strict';
let chatHistory = JSON.parse(localStorage.getItem('enhancedChat_chatHistory')) || []; let debounceTimer = null; const STORAGE_KEY = 'enhancedChat_chatHistory'; const DEBOUNCE_INTERVAL = 1000; const svgFractalNoise = ` <svg width="400px" height="400px" xmlns="http://www.w3.org/2000/svg"> <defs> <filter id="fractalNoiseFilter1"> <feTurbulence type="fractalNoise" baseFrequency="0.001" numOctaves="1" seed="25" result="noise1"/> <feColorMatrix in="noise1" type="matrix" result="colorNoise1" values="-1 -1 -1 1 1 -1 -1 -0.7 0.6 1 1 -0.1 0.3 -0.4 1 0.6 0 0.1 1 1"/> <feBlend mode="soft-light" in="SourceGraphic" in2="colorNoise1" /> </filter> <filter id="fractalNoiseFilter2"> <feTurbulence type="fractalNoise" baseFrequency="0.002" numOctaves="1" seed="10" result="noise2"/> <feColorMatrix in="noise2" type="matrix" result="colorNoise2" values="1 -0.8 -0.1 0.1 1 1 -0.2 -0.7 -0.1 1 1 1 1 1 1 1 0.9 0.6 0.6 -0.6"/> <feBlend mode="exclusion" in="SourceGraphic" in2="colorNoise2" /> </filter> </defs> <rect width="100%" height="100%" fill="black" /> <rect width="100%" height="100%" filter="url(#fractalNoiseFilter1)" opacity="1" fill="white"/> <rect width="100%" height="100%" filter="url(#fractalNoiseFilter2)" opacity="0.5" fill="white"/> </svg>`; const svgDataUrl = `data:image/svg+xml;utf8,${encodeURIComponent(svgFractalNoise)}`; const customStyles = ` - Assistant
- User
it could be logical to display content of these two arrays in web browser console, and clear console on messages updating.
it will allow to monitor what happening there before/after reset in both arrays.
so, basically you will reupdate these two arrays, and then clear console, and then reupdate, so it can display only two messages in console for two arrays current contents.
you need to always output full userscript, because it will be a mess in chat if you will do it all partially. much more tokens will be saved in this chat if you just constantly reoutput absolutely full userscript on each new implementation, trust me.
- Assistant
- User
now textually only comprehend the logic in lengthes monitoring and suggest all unimaginable improvements
- Assistant
- User
-
is not suitable due chat is permachat in concept that do not allows to exclude or revert messages.
-
will add unnecessary chaos. no need.
-
only need to auto-initialize manual commands as sve/svr to save in zip and copy content from postreset array into clipboard on detection of actual significant shortage in lengthes inbetween pre/post arrays fluctuations.
-
alerts will be unnecessary as well because flushing or reset of chat is clearly and obviously visible in this gradio reactive svelte chatgpt UI, plus messages in console showing something already.
-
maybe maybe but need to find that specific ai model in hf.space and then meticulously integrate it into this userscript for this chatgpt. firstly firstly need to establish proper fundamental functionaly. plus you need to comprehend that this (tor web browser)firefox firemonkey extension userscript is a javascript, while hf.space utilizing mostly python for their transformers library.
-
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.