docs(config): 优化 commit message 生成提示内容
This commit is contained in:
parent
dee11ba411
commit
058c09698f
|
|
@ -9,9 +9,17 @@ import json
|
|||
|
||||
SYSTEM_PROMPT = """
|
||||
你是一个专业开发者,请根据以下 git diff 生成一条符合 Conventional Commits 规范的中文 commit message。
|
||||
要求:50字以内,不要解释,不要引号,只输出 message 本身。\n
|
||||
diff:\n"
|
||||
"""
|
||||
|
||||
Conventional Commits 格式:type(scope): description
|
||||
常用 type: feat(新功能), fix(修复), docs(文档), style(格式), refactor(重构), test(测试), chore(构建)
|
||||
|
||||
请:
|
||||
1. 分析diff中的核心变更内容
|
||||
2. 选择最准确的type
|
||||
3. 用简洁中文描述变更目的,而非变更过程
|
||||
4. 50字以内,不要解释,不要引号,只输出 message 本身。
|
||||
|
||||
diff:\n"""
|
||||
|
||||
|
||||
class LLMConfig(BaseModel):
|
||||
|
|
|
|||
Loading…
Reference in New Issue