Skip to content
This repository was archived by the owner on Jul 17, 2026. It is now read-only.
This repository was archived by the owner on Jul 17, 2026. It is now read-only.

[bug] small typo #344

Open
Open

Description

@jetzhou

I noticed that the system prompts generated when using create -d <description> has a small 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 <<<<<<<<<<<<<<<<<<<<

These were generated in response to the original use request:
>>>>>>>>>>>>>>>>>>>> START CODEGEN REQUEST <<<<<<<<<<<<<<<<<<<<
(request)
>>>>>>>>>>>>>>>>>>>> END CODEGEN REQUEST <<<<<<<<<<<<<<<<<<<<

Typo is the second END CODEGEN DOCS, which should have been END CODEGEN EXAMPLES. The prompt is a response generated by CREATE_ENDPOINT i.e. f"https://{MODAL_PREFIX}--cli-create.modal.run".

Activity

  1. jayhack commented on Feb 12, 2025

    @jayhack
    Contributor

    Thanks for flagging @jetzhou !

  2. changed the title [-][Bug report] small typo[/-] [+][bug] small typo[/+] on Feb 26, 2025
  3. jayhack commented on Apr 3, 2025

    @jayhack
    Contributor

    @codegen please fix this!

    Hey! 👋 Taking a look.
    💻 View my work.

  4. codegen-sh commented on Apr 3, 2025

    @codegen-sh
    Contributor

    📝 View PR #1011 📝

    Hi @jet Zhou! I've created a PR that documents the typo in the system prompt template. The issue is that when using create -d <description>, the last delimiter incorrectly says END CODEGEN DOCS when it should say END CODEGEN EXAMPLES.

    The fix needs to be applied in the backend implementation of the cli-create.modal.run endpoint. I've documented the issue and the correct template in the system-prompt-typo.md file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions