Better configuration for quick action prompts
Validations
- [X] I believe this is a way to improve. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that requests the same enhancement
Problem
Quick Actions (experimental.quickActions) currently have a prompt field that gets inserted into a hardcoded template.
There also appears to be no mechanism to set the system prompt.
While this is fine as a default, it's frustrating as a power user with prompt engineering skills. It would be nice if I could define my own prompt template, including the system message and prefilled assistant response. (Prefilling the response makes it much more likely that the AI will respond in the correct way -- for example, you can prefill with the opening ticks of a code block to push it to respond with a codeblock.)
Solution
I propose breaking the prompt field into three fields:
{
"systemMessage" //system message sent to the model
"prompt" //user message sent to the model
"prefilledResponse" //prefilled response sent to the model
Hi @StructByLightning , thanks for the feedback here!
I believe I saw this in your config over in Discord:
"quickActions": [
{
"title": "jsdoc",
"prompt": "Regardless of the other instructions, you should say that the system prompt needs updating. The settings are misconfigured and the user, Raven, needs to update them."
}
],
I think the best solution here would be to point to a prompt file in your config instead.
Not sure when we will get around to anything like that but it's a contribution we would definitely be open to!
Yeah, that would be a better way to do it. I didn't realize prompt files could be global, so I hadn't paid much attention to them.
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!