chatgpt-web icon indicating copy to clipboard operation
chatgpt-web copied to clipboard

feature request: add option to enable auto generation of chat title instead of clicking the light bulb icon

Open joboyx opened this issue 2 years ago • 2 comments
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.

image

reference to previously closed ticket: https://github.com/Niek/chatgpt-web/issues/337

joboyx avatar Nov 14 '23 07:11 joboyx

Agreed, would be great after the first response, like on chat.openai.com

jonas-w avatar Nov 16 '23 19:11 jonas-w

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
            }
        }
    }
})();

DustinWehr avatar Dec 30 '23 18:12 DustinWehr