Skip to content

Commit

Permalink
Merge pull request #138 from s-kostyaev/fix-templates
Browse files Browse the repository at this point in the history
Fix templates
  • Loading branch information
s-kostyaev committed Jul 8, 2024
2 parents 33876e3 + 4b0b770 commit f3705d2
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions ellama.el
Original file line number Diff line number Diff line change
Expand Up @@ -246,22 +246,22 @@ PROMPT is a prompt string."
:group 'ellama
:type 'string)

(defcustom ellama-code-edit-prompt-template "Regarding the following code, %s, only output the result code in format ```language\n...\n```:\n```\n%s\n```"
(defcustom ellama-code-edit-prompt-template "Regarding the following code, %s, only output the result code in format ```language\n...\n```:\n```\n%s\n```\nWrite all the code in single code block."
"Prompt template for `ellama-code-edit'."
:group 'ellama
:type 'string)

(defcustom ellama-code-improve-prompt-template "Enhance the following code, only output the result code in format ```language\n...\n```:\n```\n%s\n```"
(defcustom ellama-code-improve-prompt-template "Enhance the following code, only output the result code in format ```language\n...\n```:\n```\n%s\n```\nWrite all the code in single code block."
"Prompt template for `ellama-code-improve'."
:group 'ellama
:type 'string)

(defcustom ellama-code-complete-prompt-template "Continue the following code, only write new code in format ```language\n...\n```:\n```\n%s\n```"
(defcustom ellama-code-complete-prompt-template "Continue the following code, only write new code in format ```language\n...\n```:\n```\n%s\n```\nWrite all the code in single code block."
"Prompt template for `ellama-code-complete'."
:group 'ellama
:type 'string)

(defcustom ellama-code-add-prompt-template "Context: \n```\n%s\n```\nBased on this context, %s, only output the result in format ```\n...\n```"
(defcustom ellama-code-add-prompt-template "Context: \n```\n%s\n```\nBased on this context, %s, only output the result in format ```\n...\n```\nWrite all the code in single code block."
"Prompt template for `ellama-code-add'."
:group 'ellama
:type 'string)
Expand All @@ -282,12 +282,15 @@ PROMPT is a prompt string."
:type 'string)

(defcustom ellama-get-name-template "I will get you user query, you should return short topic only, what this conversation about. NEVER respond to query itself. Topic must be short and concise.
For example:
<example>
Query: Why is sky blue?
Topic: Blue sky
Query: %s
Topic:"
</example>
<query>
%s
</query>
Topic:
"
"Prompt template for `ellama-get-name'."
:group 'ellama
:type 'string)
Expand Down

0 comments on commit f3705d2

Please sign in to comment.