From 5d9ba4a0fe2508931fe05ab64e8a840c1e8bf7c0 Mon Sep 17 00:00:00 2001 From: "codegen-sh[bot]" <131295404+codegen-sh[bot]@users.noreply.github.com> Date: Thu, 3 Apr 2025 22:44:07 +0000 Subject: [PATCH 1/2] Document system prompt template typo fix --- docs/fixes/system-prompt-typo.md | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 docs/fixes/system-prompt-typo.md diff --git a/docs/fixes/system-prompt-typo.md b/docs/fixes/system-prompt-typo.md new file mode 100644 index 000000000..ac6908790 --- /dev/null +++ b/docs/fixes/system-prompt-typo.md @@ -0,0 +1,49 @@ +# System Prompt Template Typo Fix + +## Issue + +When using the `create -d ` command, the system prompt template generated has a typo in the delimiters. The prompt generated follows this template: + +``` +Hey CodegenBot! You are a hyper-intelligent developer assistant who helps developers perform codebase manipulation using the `codegen` library. + +Here is full documentation of the `codegen` library: +>>>>>>>>>>>>>>>>>>>> START CODEGEN DOCS <<<<<<<<<<<<<<<<<<<< + +(codegen docs) + +>>>>>>>>>>>>>>>>>>>> END CODEGEN DOCS <<<<<<<<<<<<<<<<<<<< + +Here is a set of examples that we've RAG'd in and have confirmed work: +>>>>>>>>>>>>>>>>>>>> START CODEGEN EXAMPLES <<<<<<<<<<<<<<<<<<<< + +(codegen examples) + +>>>>>>>>>>>>>>>>>>>> END CODEGEN DOCS <<<<<<<<<<<<<<<<<<<< +``` + +The typo is in the last delimiter, which incorrectly says `END CODEGEN DOCS` when it should say `END CODEGEN EXAMPLES`. + +## Fix + +The correct template should be: + +``` +Hey CodegenBot! You are a hyper-intelligent developer assistant who helps developers perform codebase manipulation using the `codegen` library. + +Here is full documentation of the `codegen` library: +>>>>>>>>>>>>>>>>>>>> START CODEGEN DOCS <<<<<<<<<<<<<<<<<<<< + +(codegen docs) + +>>>>>>>>>>>>>>>>>>>> END CODEGEN DOCS <<<<<<<<<<<<<<<<<<<< + +Here is a set of examples that we've RAG'd in and have confirmed work: +>>>>>>>>>>>>>>>>>>>> START CODEGEN EXAMPLES <<<<<<<<<<<<<<<<<<<< + +(codegen examples) + +>>>>>>>>>>>>>>>>>>>> END CODEGEN EXAMPLES <<<<<<<<<<<<<<<<<<<< +``` + +This fix needs to be applied in the backend implementation of the `cli-create.modal.run` endpoint. \ No newline at end of file From 6d6018ec222649cbd016d99e3e7c5bcccd62709d Mon Sep 17 00:00:00 2001 From: "codegen-sh[bot]" <131295404+codegen-sh[bot]@users.noreply.github.com> Date: Thu, 3 Apr 2025 22:45:07 +0000 Subject: [PATCH 2/2] Automated pre-commit update --- docs/fixes/system-prompt-typo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fixes/system-prompt-typo.md b/docs/fixes/system-prompt-typo.md index ac6908790..9b6bcec06 100644 --- a/docs/fixes/system-prompt-typo.md +++ b/docs/fixes/system-prompt-typo.md @@ -46,4 +46,4 @@ Here is a set of examples that we've RAG'd in and have confirmed work: >>>>>>>>>>>>>>>>>>>> END CODEGEN EXAMPLES <<<<<<<<<<<<<<<<<<<< ``` -This fix needs to be applied in the backend implementation of the `cli-create.modal.run` endpoint. \ No newline at end of file +This fix needs to be applied in the backend implementation of the `cli-create.modal.run` endpoint.