Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure the "prompts" directory via JSON file based on Nate/prompt-file #1308 #1339

Conversation

catatapiafuentes
Copy link
Contributor

A description of the bug

  • Based on the branch Nate/prompt-file Nate/prompt-file #1308
  • This complements the concept of "Prompt as code," meaning that the prompt used is under version control and all team members can use and edit it.
  • A configuration was added to define the path for the folder where prompt files are saved by adding it to the experimental object in the .continuerc.json file.

Checklist

  • The base branch of this PR is preview, rather than main

sestinj and others added 30 commits April 18, 2024 11:46
Existing slash commands expect an object named
"params" so mapping to "options" here caused
params to be undefined within the run scope. I
renamed from 'm' to 's' just to avoid potential
confusion with the model property mapping above.
Currently, user-selected code blocks are formatted
with range in file (rif) info on the same line as
the triple backticks, which means that when
exported to markdown they don't have the language
info needed on that line for syntax highlighting.
This update moves the rif info to the following
line as a comment in the language of the file and
with the language info in the correct place.

Before:
```example.ts (3-6)

function fib(n) {
    if (n <= 1) return n;
    return fib(n - 2) + fib(n - 1);
}
```

After:
```ts
// example.ts (3-6)

function fib(n) {
    if (n <= 1) return n;
    return fib(n - 2) + fib(n - 1);
}
```
Copy link

netlify bot commented May 22, 2024

Deploy Preview for continuedev ready!

Name Link
🔨 Latest commit 8242b0b
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/664e09e6ff901d000869a4e1
😎 Deploy Preview https://deploy-preview-1339--continuedev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet