diff --git a/.opencommitignore b/.opencommitignore new file mode 100644 index 0000000..c585e19 --- /dev/null +++ b/.opencommitignore @@ -0,0 +1 @@ +out \ No newline at end of file diff --git a/README.md b/README.md index 40ef0a2..b365136 100644 --- a/README.md +++ b/README.md @@ -326,4 +326,8 @@ Interactive rebase (`rebase -i`) changes commits' SHA, so the commit history in ## Payments -You pay for your requests to OpenAI API. OpenCommit uses ChatGPT (3.5-turbo) official model, which is ~15x times cheaper than GPT-4. +You pay for your requests to OpenAI API on your own. + +OpenCommit stores your key locally. + +OpenCommit by default uses ChatGPT (3.5-turbo-16k) official model, which is a lot cheaper than gpt-4. diff --git a/out/cli.cjs b/out/cli.cjs index 1489218..a109c7b 100755 --- a/out/cli.cjs +++ b/out/cli.cjs @@ -22312,7 +22312,7 @@ var generateCommitMessageFromGitDiff = async (diff, extraArgs2) => { try { let commitMessage = await generateCommitMessageByDiff(diff); const messageTemplate = checkMessageTemplate(extraArgs2); - if (typeof messageTemplate === "string") { + if (config7?.OCO_MESSAGE_TEMPLATE_PLACEHOLDER && typeof messageTemplate === "string") { commitMessage = messageTemplate.replace( config7?.OCO_MESSAGE_TEMPLATE_PLACEHOLDER, commitMessage