Skip to content

System prompt is sent incorrectly #4

Description

@BritishTeapot

In smartcommit, requests for the API are sent as a single user message:

User:
[System prompt]
Here is the Git diff:
---
[Git diff]
---
Write a commit message:

However, this is very inefficient, and underutilises the instruction following capability of the LLM.

Proposed solution:

Send requests as two messages, one from the system, and one from the user:

System: [System prompt]
User: Here is the Git diff:
---
[Git diff]
---
Please write a commit message.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions