updated git diff, tried curie
This commit is contained in:
@@ -28,7 +28,7 @@ export async function main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const diff = execSync(
|
const diff = execSync(
|
||||||
"git diff --cached ':!package-lock.json' ':!yarn.lock'",
|
"git diff --cached . ':(exclude)package-lock.json' ':(exclude)yarn.lock'",
|
||||||
{
|
{
|
||||||
encoding: "utf8",
|
encoding: "utf8",
|
||||||
}
|
}
|
||||||
@@ -83,7 +83,7 @@ export async function main() {
|
|||||||
|
|
||||||
async function generateCommitMessage(prompt: string) {
|
async function generateCommitMessage(prompt: string) {
|
||||||
const payload = {
|
const payload = {
|
||||||
model: "text-curie-001",
|
model: "text-davinci-003",
|
||||||
prompt,
|
prompt,
|
||||||
temperature: 0.7,
|
temperature: 0.7,
|
||||||
top_p: 1,
|
top_p: 1,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "aicommits",
|
"name": "aicommits",
|
||||||
"version": "0.2.8",
|
"version": "0.3.0",
|
||||||
"description": "Writes your git commit messages for you with AI",
|
"description": "Writes your git commit messages for you with AI",
|
||||||
"main": "bin/index.js",
|
"main": "bin/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
Reference in New Issue
Block a user