Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

[Enhancement]: Add custom saved prompts #16

Closed
guilhermelimak opened this issue May 9, 2023 · 7 comments · Fixed by #17
Closed

[Enhancement]: Add custom saved prompts #16

guilhermelimak opened this issue May 9, 2023 · 7 comments · Fixed by #17
Labels
enhancement New feature or improvement of an existing one package:web This issue concerns the Web implementation

Comments

@guilhermelimak
Copy link

Scope

Web (gpt-turbo-web)

Type

New feature

Description

I'm not sure this is in the scope of this application but would be very nice to be able to save custom prompts and start conversations with them. I have some prompts that I use a lot and ended up storing them in a markdown file and copy-pasting them when needed.

The main points would be:

  • Users should be able to view a list with custom prompts (maybe in a modal?)
  • Users should be able to add/delete/edit custom prompts that they created
  • Users should be able to select a custom prompt from a select input when starting a new conversation
  • Users should not be able to see other users prompts or have any kind of cloud like functionality
  • User prompts should be stored in the user browser (maybe localstorage or something like that) and would be lost when clearing cache (just to avoid all the work of syncing it)

It is a somewhat complex feature so I would definitely understand if you think it shouldn't be added.

Benefit

Users would have easy access to prompts they use a lot when creating a new conversation, making it easy to do repetitive tasks in different conversations (like generating code or translating text)

Participation

Yes

@guilhermelimak guilhermelimak added the needs-triage This issue was not yet reviewed by the team label May 9, 2023
@maxijonson maxijonson added enhancement New feature or improvement of an existing one package:web This issue concerns the Web implementation and removed needs-triage This issue was not yet reviewed by the team labels May 9, 2023
@maxijonson
Copy link
Owner

Hey! Thanks for opening an issue.

Yes, that would be a good idea, especially for context (system) prompts. I would suggest some button inside the context input (when creating a new conversation) and the same button inside the prompt input of the conversation. When either of these buttons is pressed, a popup or dropdown shows the saved prompts (maybe with a name instead of the entire prompt? or maybe with an ellipsis "..."?). I'm open to different display methods, I've never had the same use case as you so you might have better insight into it!

I'd be happy to work on it soon, or I can leave it to you if you'd like.

@maxijonson
Copy link
Owner

@guilhermelimak did you plan on implementing this? Just so I know before I work on something you're already working on 😅

@guilhermelimak
Copy link
Author

hey, sorry about the silence. I will not be able to work on this for at least a couple of days, I'll post here to let you know if I start working on this so we don't do the same work twice

@maxijonson
Copy link
Owner

I'll start working on it and hopefully get it out pretty soon! 😁

@maxijonson
Copy link
Owner

Hey, just a heads up that the feature has been implemented. However, upon deployment, I've noticed the app totally crashes because of an invalid persistence state in local storage. Because this will affect most returning users, I've rolled back to the previous deployment until a fix is out for this bug. Will let you know when it's deployed!

@maxijonson
Copy link
Owner

Fixed by #18. It's now live on the web app!

@guilhermelimak
Copy link
Author

This works wonderfully! Thansk a lot for taking the time to add this feature. Your app is great, I've been using it daily.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or improvement of an existing one package:web This issue concerns the Web implementation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants