Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix generated code with header blank line #3301

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion clients/tabby-agent/src/chat/prompts/generate-docs.md
Original file line number Diff line number Diff line change
@@ -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 <GENERATEDCODE></GENERATEDCODE> XML tags.
The opening <GENERATEDCODE> tag and the first line of code must be on the same line
Example format:
<GENERATEDCODE>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.
Expand All @@ -13,4 +18,4 @@ The selection waiting for documentaion:
<USERSELECTION>{{document}}</USERSELECTION>

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 <USERCOMMAND></USERCOMMAND> XML tags:
<USERCOMMAND>{{command}}</USERCOMMAND>
<USERCOMMAND>{{command}}</USERCOMMAND>
Loading