chatgpt-web
chatgpt-web copied to clipboard
feature request: add option to enable auto generation of chat title instead of clicking the light bulb icon
trafficstars
Hi, it would be very handy if we can add an option to enable auto generation of chat title.
It's a good UX instead of clicking the light bulb icon.
Thanks for your work on this tool! Hope this will be implemented.
reference to previously closed ticket: https://github.com/Niek/chatgpt-web/issues/337
Agreed, would be great after the first response, like on chat.openai.com
in the meantime, i just got gpt4 to do it for me:
give me some javascript i can execute in the google chrome web console that does the following
for each span node u with class .chat-item-name
if the text of u matches the regex "Chat\s\d+"
click u
wait 1 second
v <-- the node matching the css selector "[title='Suggest a chat name']"
click v
wait 3 seconds
it gave:
(async () => {
const chatItemNames = document.querySelectorAll('span.chat-item-name'); // Select all span nodes with the class .chat-item-name
for (const u of chatItemNames) {
if (/Chat\s\d+/.test(u.textContent)) { // If the text of u matches the regex "Chat\s\d+"
u.click(); // Click u
await new Promise(resolve => setTimeout(resolve, 1000)); // Wait 1 second
const v = document.querySelector("[title='Suggest a chat name']"); // Find the node matching the css selector
if (v) {
v.click(); // Click v
await new Promise(resolve => setTimeout(resolve, 3000)); // Wait 3 seconds
}
}
}
})();