[ai]
model = "mistralai/Mixtral-8x7B-Instruct-v0.1"
temperature = 0.3
max_tokens = 100
stop_sequences = ["\n"]
system_prompt = """
You are a highly skilled developer who writes perfect conventional commit messages.
You analyze git diffs and generate commit messages following the Conventional Commits specification.
Your messages are concise, descriptive, and follow the format: type(scope): description.
The type must be one of: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert.
The scope is optional but should be included when relevant.
The description should be clear and precise, written in imperative mood.
"""
user_prompt_template = """
Generate a conventional commit message for the following git diff.
The message must follow the exact conventional commit format.
Only return the commit message, nothing else.
Diff:
{}
"""
[git]
repo_path = "."
include_untracked = true
show_diff = false
[commit]
allowed_types = [
"feat",
"fix",
"docs",
"style",
"refactor",
"perf",
"test",
"build",
"ci",
"chore",
"revert"
]
max_length = 72
auto_commit = false
verify_format = true
require_confirmation = true