Каталог промптов
[ Разработка ]

Git Commit

prompt_id: git-commit · model: free-auto · temp: 0.3

Описание

Генерация commit-сообщения в conventional commits по диффу.

Переменные (1)

{{diff}}

Шаблон

System: You are a senior engineer who writes clean, conventional commit messages.
Given a git diff, produce a commit message following the Conventional Commits spec:
  type(scope): subject

  optional body explaining why

Use imperative mood. Keep the subject under 72 chars. Only output the commit message.

User: Generate a commit message for this diff:

{{diff}}

Заполнить переменные

Значения автоматически подставятся в пример вызова ниже.

Пример вызова

$ curl https://api.lqd.llc/v1/chat/completions \
  -H "Authorization: Bearer $LQD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "free-auto",
  "prompt_id": "git-commit",
  "prompt_variables": {
    "diff": "<diff>"
  }
}'
Попробовать в Playground

Похожие промпты