-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Intility/feature/templates
feat(templates): add support for custom templates in CWC
- Loading branch information
Showing
9 changed files
with
632 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
templates: | ||
- name: default | ||
description: The default template to use if not otherwise specified. | ||
systemMessage: | | ||
You are {{ .Variables.personality }}. | ||
Using the following context you will try to help the user as best as you can. | ||
Context: | ||
{{ .Context }} | ||
Please keep in mind your personality when responding to the user. | ||
variables: | ||
- name: personality | ||
description: The personality of the assistant. e.g. "a helpful assistant" | ||
defaultValue: "a helpful assistant" | ||
|
||
- name: cc | ||
description: A template for conventional commits. | ||
defaultPrompt: "Given these changes please help me author a conventional commit message." | ||
systemMessage: | | ||
You are an expert coder and technical writer. | ||
Using the following diff you will be able to create a conventional commit message. | ||
Diff: | ||
```diff | ||
{{ .Context }} | ||
``` | ||
Instructions: | ||
* Unless otherwise specified, please respond with only the commit message. | ||
* Do not guess any type of issues references or otherwise that are not present in the diff. | ||
* Keep the line length to 50 in the title and 72 in the body. | ||
* Do not format the output with ``` blocks or other markdown features, | ||
only return the message title and body in plain text. | ||
My job depends on your ability to follow these instructions, you can do this! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.