From a6459ede07298639b13ad894353644cfa576f909 Mon Sep 17 00:00:00 2001 From: Hassan El Mghari Date: Mon, 13 Feb 2023 19:44:43 -0500 Subject: [PATCH] updated git diff, tried curie --- aicommits.ts | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aicommits.ts b/aicommits.ts index a3d6e95..3511b51 100644 --- a/aicommits.ts +++ b/aicommits.ts @@ -28,7 +28,7 @@ export async function main() { } const diff = execSync( - "git diff --cached ':!package-lock.json' ':!yarn.lock'", + "git diff --cached . ':(exclude)package-lock.json' ':(exclude)yarn.lock'", { encoding: "utf8", } @@ -83,7 +83,7 @@ export async function main() { async function generateCommitMessage(prompt: string) { const payload = { - model: "text-curie-001", + model: "text-davinci-003", prompt, temperature: 0.7, top_p: 1, diff --git a/package.json b/package.json index 63bfe4d..5b5e25e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aicommits", - "version": "0.2.8", + "version": "0.3.0", "description": "Writes your git commit messages for you with AI", "main": "bin/index.js", "bin": {