aicommits 0.2.9 → 0.3.2

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/README.md CHANGED
@@ -26,7 +26,9 @@ After that, generate your commit running `aicommits`.
26
26
 
27
27
  ## How it works
28
28
 
29
- This CLI tool runs a `git diff` command to grab all the latest changes, sends this to OpenAI's GPT-3, then returns the AI generated commit message. Video coming soon where I rebuild it from scratch to show you how to easily build your own CLI tools powered by AI.
29
+ This CLI tool runs a `git diff` command to grab all the latest changes, sends this to OpenAI's GPT-3, then returns the AI generated commit message. I also want to note that it does cost money since data gets sent to OpenAI for a commit message to be generated. However, OpenAI gives folks $18 of free credits and commit message generations are cheap so it should be free for a long time.
30
+
31
+ Video coming soon where I rebuild it from scratch to show you how to easily build your own CLI tools powered by AI.
30
32
 
31
33
  ## Limitations
32
34
 
@@ -35,11 +37,6 @@ This CLI tool runs a `git diff` command to grab all the latest changes, sends th
35
37
 
36
38
  The next version of the CLI, v2, will address both of these limitations!
37
39
 
38
- ## Tasks now
39
-
40
- - Experiment with openai curie and codex as opposed to dacinvi
41
- - Figure out the price per commit
42
-
43
40
  ## Future tasks
44
41
 
45
42
  - Add support for conventional commits as a flag that users can enable
package/bin/aicommits.js CHANGED
@@ -37,7 +37,7 @@ 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 ':!package-lock.json' ':!yarn.lock'", {
40
+ const diff = (0, child_process_1.execSync)("git diff --cached . ':(exclude)package-lock.json' ':(exclude)yarn.lock'", {
41
41
  encoding: "utf8",
42
42
  });
43
43
  if (!diff) {
@@ -76,7 +76,7 @@ exports.main = main;
76
76
  function generateCommitMessage(prompt) {
77
77
  return __awaiter(this, void 0, void 0, function* () {
78
78
  const payload = {
79
- model: "text-curie-001",
79
+ model: "text-davinci-003",
80
80
  prompt,
81
81
  temperature: 0.7,
82
82
  top_p: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aicommits",
3
- "version": "0.2.9",
3
+ "version": "0.3.2",
4
4
  "description": "Writes your git commit messages for you with AI",
5
5
  "main": "bin/index.js",
6
6
  "bin": {