continue icon indicating copy to clipboard operation
continue copied to clipboard

Better configuration for quick action prompts

Open StructByLightning opened this issue 1 year ago • 2 comments

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

StructByLightning avatar Sep 18 '24 17:09 StructByLightning

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!

Patrick-Erichsen avatar Sep 19 '24 19:09 Patrick-Erichsen

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.

StructByLightning avatar Sep 19 '24 21:09 StructByLightning

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.

github-actions[bot] avatar Mar 03 '25 04:03 github-actions[bot]

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!

github-actions[bot] avatar Mar 15 '25 02:03 github-actions[bot]