[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ellama f3705d2413 3/4: Merge pull request #138 from s-k
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ellama f3705d2413 3/4: Merge pull request #138 from s-kostyaev/fix-templates |
Date: |
Mon, 8 Jul 2024 18:58:33 -0400 (EDT) |
branch: externals/ellama
commit f3705d2413f66d171c415dcc6d3af9034338a34d
Merge: 33876e3ea9 4b0b770903
Author: Sergey Kostyaev <s-kostyaev@users.noreply.github.com>
Commit: GitHub <noreply@github.com>
Merge pull request #138 from s-kostyaev/fix-templates
Fix templates
---
ellama.el | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/ellama.el b/ellama.el
index ded33cf648..9b2195d4db 100644
--- a/ellama.el
+++ b/ellama.el
@@ -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)
@@ -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)