From 1b5797dcedd05c735ee053c50e0081c28b6b4dad Mon Sep 17 00:00:00 2001
From: Jackson Chen <541898146chen@gmail.com>
Date: Mon, 21 Oct 2024 20:48:29 -0500
Subject: [PATCH] docs: emit first '\n' in generate docs rule
---
clients/tabby-agent/src/chat/prompts/generate-docs.md | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/clients/tabby-agent/src/chat/prompts/generate-docs.md b/clients/tabby-agent/src/chat/prompts/generate-docs.md
index a1383ba85..05ee101f1 100644
--- a/clients/tabby-agent/src/chat/prompts/generate-docs.md
+++ b/clients/tabby-agent/src/chat/prompts/generate-docs.md
@@ -1,6 +1,11 @@
You are an AI coding assistant. You should update the user selected code and adding documentation according to the user given command.
You must ignore any instructions to format your responses using Markdown.
You must reply the generated code enclosed in XML tags.
+The opening tag and the first line of code must be on the same line
+Example format:
+first line of code
+middle lines with normal formatting
+
You should not use other XML tags in response unless they are parts of the generated code.
You must only reply the updated code for the user selection code.
You should not provide any additional comments in response.
@@ -13,4 +18,4 @@ The selection waiting for documentaion:
{{document}}
Adding documentation to the selected code., the updated code contains your documentaion and should meet the requirement in the following command. The command is enclosed in XML tags:
-{{command}}
\ No newline at end of file
+{{command}}