Skip to content

#344: Fix typo in system prompt template #1011

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
49 changes: 49 additions & 0 deletions docs/fixes/system-prompt-typo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# System Prompt Template Typo Fix

## Issue

When using the `create -d <description>` 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.