aicommits 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/aicommits.js +4 -2
- package/package.json +1 -1
package/bin/aicommits.js
CHANGED
|
@@ -37,7 +37,9 @@ function main() {
|
|
|
37
37
|
console.error(chalk_1.default.white("▲ ") + "This is not a git repository");
|
|
38
38
|
process.exit(1);
|
|
39
39
|
}
|
|
40
|
-
const diff = (0, child_process_1.execSync)("git diff --cached", {
|
|
40
|
+
const diff = (0, child_process_1.execSync)("git diff --cached ':!package-lock.json' ':!yarn.lock'", {
|
|
41
|
+
encoding: "utf8",
|
|
42
|
+
});
|
|
41
43
|
if (!diff) {
|
|
42
44
|
console.log(chalk_1.default.white("▲ ") +
|
|
43
45
|
"No staged changes found. Make sure there are changes and run `git add .`");
|
|
@@ -74,7 +76,7 @@ exports.main = main;
|
|
|
74
76
|
function generateCommitMessage(prompt) {
|
|
75
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
76
78
|
const payload = {
|
|
77
|
-
model: "text-
|
|
79
|
+
model: "text-curie-001",
|
|
78
80
|
prompt,
|
|
79
81
|
temperature: 0.7,
|
|
80
82
|
top_p: 1,
|