Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joboyx opened this issue Nov 14, 2023 · 2 comments

Comments

@joboyx
Copy link

joboyx commented Nov 14, 2023

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: #337

@jonas-w
Copy link

jonas-w commented Nov 16, 2023

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

@DustinWehr
Copy link

DustinWehr commented Dec 30, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants