continue icon indicating copy to clipboard operation
continue copied to clipboard

feat: Automatic Chat Titles

Open mkummer225 opened this issue 1 year ago • 1 comments

Description

This PR adds automatic title generation for chat sessions. Currently it runs after the user submits their first chat (there's an opportunity for more robust logic added here). We piggy back off the user's currently selected model while limiting the maxTokens (response tokens) to 24; the baked-in prompt asks the model to reply with 4-12 words.

Currently this feature is enabled using the experimental config parameter: getChatTitles: boolean;

There appears to have been a prior effort to add this functionality via the disableSessionTitles config param (enabled by default then the user could opt-out). When this feature is ready to come out of experimental we should clean up this prior param (assuming I understood it's purpose correctly)

Checklist

  • [x] The base branch of this PR is dev, rather than main
  • [ ] The relevant docs, if any, have been updated or created

Screenshots

No visual changes were made; the titles are shown the same as before

image image

Testing

Enable this feature by setting experimental.getChatTitles to true

mkummer225 avatar Oct 04 '24 20:10 mkummer225

While building this feature I spent a decent amount of time thinking about ways to improve search & organization of past chats – it might be cool to have a set of tags that the LLM also generates when generating the title. Then in the history tab the user is able to click-select multiple tags while filtering.

mkummer225 avatar Oct 04 '24 20:10 mkummer225

great work!

sestinj avatar Oct 13 '24 06:10 sestinj

Hi @mkummer225, yesterday we shared some updates with our contributors about how we're aiming to improve the contribution process. Part of this included the addition of a Contributor License Agreement (CLA) to protect both contributors and the project. We're reaching out to ask that previous contributors sign it.

Could you please take a moment to sign, or if you have any questions send me a message? (either here or [email protected] would work)

To do so, you just need to post a comment below with the following text:

I have read the CLA Document and I hereby sign the CLA

❤️ Thank you for the work you've done on Continue, and let me know if you have any suggestions on how we can make the project even better!

sestinj avatar May 15 '25 18:05 sestinj


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


1 out of 2 committers have signed the CLA.
:white_check_mark: (sestinj)[https://github.com/sestinj]
:x: @mkummer225
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

github-actions[bot] avatar May 15 '25 18:05 github-actions[bot]