@@ -8,7 +8,7 @@ import prompts from "prompts";
88import { program } from "commander" ;
99
1010let openai ;
11- let model = "gpt-4-turbo-preview " ; // Default model
11+ let model = "gpt-4o " ; // Default model
1212
1313export 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