Skip to content

Commit 54742a5

Browse files
committed
Fixed prompt of /rcc-styleguide
1 parent 41f4cd2 commit 54742a5

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

ai-assistant/src/core/prompt/prompt.factory.ts

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -79,28 +79,10 @@ export namespace PromptFactory {
7979
styleguides: string
8080
): Prompt {
8181
const prompt = new Prompt();
82-
8382
prompt.pushSystem(PROMPT_STYLEGUIDE_COMMAND);
84-
prompt.pushAssistant(
85-
"Sure, I will strictly follow my instructions. I will only provide the answer in text format."
86-
);
87-
prompt.pushSystem(`
88-
<STYLEGUIDES_START>
89-
${styleguides}
90-
<STYLEGUIDES_END>
91-
`);
92-
prompt.pushSystem(`
93-
<CODEBASE_START>
94-
${codebase}
95-
<CODEBASE_END>
96-
`);
97-
prompt.pushAssistant(
98-
"Yeah sure. I understand this codebase very well and I am able to enforce the styleguide rules on the codebase. If I don't know the answer, I'll tell it to you."
99-
);
10083
prompt.pushUser(
101-
"Enforce the styleguide rules on the provided codebase."
84+
`<STYLEGUIDES_START>${styleguides}<STYLEGUIDES_END>\n<CODEBASE_START>${codebase}<CODEBASE_END>`
10285
);
103-
prompt.pushSystem("<ANSWER>");
10486

10587
return prompt;
10688
}

0 commit comments

Comments
 (0)