Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✏️ sumaryTemplate to summaryTemplate #68

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/lobe-commit/src/prompts/commits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const promptCommits = () => {
]);
};

const sumaryTemplate = [
const summaryTemplate = [
`You are to act as the author of a commit message in git. Your mission is to create clean and comprehensive commit messages in the conventional commit convention and explain WHAT were the changes and WHY the changes were done.`,
`I'll enter a git diff summary, and your job is to convert it into a useful commit message.`,
`--------`,
Expand All @@ -47,7 +47,7 @@ const sumaryTemplate = [
.join('\n');

const summaryRefineTemplate = [
sumaryTemplate,
summaryTemplate,
`## Rules`,
`- Choose only 1 type from the type-to-description below: <${TYPES_EXAMPLE}>`,
`- Commit message must be a maximum of ${MAX_LENGTH} characters.`,
Expand All @@ -56,5 +56,5 @@ const summaryRefineTemplate = [
.filter(Boolean)
.join('\n');

export const SUMMARY_PROMPT = PromptTemplate.fromTemplate(sumaryTemplate);
export const SUMMARY_PROMPT = PromptTemplate.fromTemplate(summaryTemplate);
export const SUMMARY_REFINE_PROMPT = PromptTemplate.fromTemplate(summaryRefineTemplate);
Loading