From 7ab8920b6819f058dc886eb3158cca1c79ed05f1 Mon Sep 17 00:00:00 2001 From: Jan Andrle Date: Thu, 22 Feb 2024 14:55:09 +0100 Subject: [PATCH] =?UTF-8?q?:zap:=20`=C2=A7ai-commit`=20replace=20obsolete?= =?UTF-8?q?=20model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/§ai-commit.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/§ai-commit.mjs b/bin/§ai-commit.mjs index 57e6ee0..6f02e0f 100755 --- a/bin/§ai-commit.mjs +++ b/bin/§ai-commit.mjs @@ -43,7 +43,7 @@ const conventional_desc= [ ]; $.api("", true) - .version("2024-02-19") + .version("2024-02-22") .describe([ "Utility to use ChatGPT to generate a commit message from COMMIT_EDITMSG file.", `Don't forget to set the token in ${token_file} file.`, @@ -140,7 +140,7 @@ function gitmoji(candidates, is_three= false){ } function requestCommitMessage(prompt){ if(!token) token= s.cat(token_file).stdout.trim(); - const model= "text-davinci-003"; + const model= "gpt-3.5-turbo-instruct"; return fetch(`https://api.openai.com/v1/engines/${model}/completions`, { method: "POST", headers: {