Skip to content

Commit

Permalink
Update prompt.go
Browse files Browse the repository at this point in the history
Co-authored-by: Ammar Bandukwala <[email protected]>
  • Loading branch information
wangkang and ammario committed Nov 6, 2024
1 parent bf834d7 commit b21709e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func findGitRoot(dir string) (string, error) {

const userConfigDir = ".aicommit"
const styleGuideFilename = "COMMITS.md"
const styleGuideDefault = `
const defaultUserStyleGuide = `
1. Limit the subject line to 50 characters.
2. Use the imperative mood in the subject line.
3. Capitalize the subject line such as "Fix Issue 886" and don't end it with a period.
Expand Down Expand Up @@ -261,7 +261,7 @@ func BuildPrompt(
return nil, fmt.Errorf("find user style guide: %w", err)
}
if userStyleGuide == "" {
userStyleGuide = styleGuideDefault
userStyleGuide = defaultUserStyleGuide
}
resp = append(resp, openai.ChatCompletionMessage{
Role: openai.ChatMessageRoleSystem,
Expand Down

0 comments on commit b21709e

Please sign in to comment.