feat(prompts): add new generated_commit_message prompt for Claude 3.7

What does this merge request do and why?

This adds a new generated_commit_message prompt to use Claude 3.7. There will be a follow up MR to utilize this from the rails side.

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/521392

How to set up and validate locally

  1. Run this curl command to see if the new version is being picked up and used.
      curl -X 'POST' \
        'http://localhost:5052/v1/prompts/generate_commit_message' \
        -H 'accept: application/json' \
        -H 'Content-Type: application/json' \
        -d '{
          "inputs": {"diff": "diff --git a/README.md b/README.md\nindex c1788657b95998a2f177a4f86d68a60f2a80117f..da818fca1c2742de5ef4090cb440d92c11d41ae7 100644\n--- a/CONTRIBUTING.md\n+++ b/CONTRIBUTING.md\n@@ -6,7 +6,7 @@ Hello world\nUnchanged line\n\n-Removed line\n+Added line\n\n## Another unchanged line\n"},
          "prompt_version": "1.1.0",
          "stream": false
        }'

-->

Merge request checklist

  • Tests added for new functionality. If not, please raise an issue to follow up.
  • Documentation added/updated, if needed.
Edited by Sincheol (David) Kim

Merge request reports

Loading