File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
ai-assistant/src/core/prompt Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -56,21 +56,10 @@ export namespace PromptFactory {
5656 query : string
5757 ) : Prompt {
5858 const prompt = new Prompt ( ) ;
59-
6059 prompt . pushSystem ( PROMPT_DOCUMENT_COMMAND ) ;
61- prompt . pushAssistant (
62- "Sure, I will strictly follow my instructions. The output will be in the above format only."
63- ) ;
64- prompt . pushSystem ( `
65- HERE'RE THE NODES OF THE CODEBASE TO USE AS CONTEXT:
66- <CODEBASE_START>
67- ${ codebase }
68- </CODEBASE_END>
69- ` ) ;
70- prompt . pushAssistant (
71- "Yeah sure. I understand this codebase very well and I am able to generate JSDoc & documentation for the target entity."
60+ prompt . pushUser (
61+ `<CODEBASE_START>\n${ codebase } \n<CODEBASE_END>\n\nTarget Entity: ${ query } `
7262 ) ;
73- prompt . pushUser ( query ) ;
7463
7564 return prompt ;
7665 }
You can’t perform that action at this time.
0 commit comments