Skip to content

Commit d9e0486

Browse files
update model
1 parent 19f6419 commit d9e0486

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import prompts from "prompts";
88
import { program } from "commander";
99

1010
let openai;
11-
let model = "gpt-4-turbo-preview"; // Default model
11+
let model = "gpt-4o"; // Default model
1212

1313
export async function getGitSummary() {
1414
try {
@@ -59,7 +59,7 @@ const gptCommit = async () => {
5959
const response = await openai.chat.completions.create(parameters);
6060

6161
const message = response.choices[0].message.content
62-
.replace(/[^\w\s.-]/gi, "")
62+
.replace(/[^\w\s.:@<>-]/gi, "")
6363
.trim();
6464

6565
const confirm = await prompts({
@@ -100,8 +100,8 @@ const gitExtension = (args) => {
100100
message: "Select a model",
101101
choices: [
102102
{ title: "gpt-3.5-turbo-instruct", value: "gpt-3.5-turbo-instruct" },
103-
{ title: "gpt-4-1106-preview", value: "gpt-4-1106-preview" },
104-
{ title: "gpt-4-0125-preview", value: "gpt-4-0125-preview" }, // New model added
103+
{ title: "gpt-4-turbo", value: "gpt-4-turbo" },
104+
{ title: "gpt-4", value: "gpt-4" }, // New model added
105105
],
106106
initial: 0,
107107
});

0 commit comments

Comments
 (0)