diff --git a/ellama.el b/ellama.el index ded33cf..9b2195d 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: + Query: Why is sky blue? Topic: Blue sky - -Query: %s -Topic:" + + +%s + +Topic: +" "Prompt template for `ellama-get-name'." :group 'ellama :type 'string)