vercel / ai-chatbot

A full-featured, hackable Next.js AI chatbot built by Vercel
https://chat.vercel.ai
Other
5.53k stars 1.63k forks source link

Add prompt history #308

Closed lmezasemet closed 1 month ago

lmezasemet commented 2 months ago

Adding useLocalStorageState to have a local history of prompt. Using ArrowUp and ArrowDown to select prompt in the localStorageState. Adding DropDownMenu to view all the local history, you can select directly inside of it or also delete all localStorageState.

vercel[bot] commented 2 months ago

@lmezasemet is attempting to deploy a commit to the Uncurated Tests Team on Vercel.

A member of the Team first needs to authorize it.

athrael-soju commented 2 months ago

Although this is a great idea, it's worth considering that the rest of the app is using KV to manage sessions and chat history. So it would make sense to power this functionality by KV as well, since it would cause confusion if some things persist and some don't.

Just a thought.