appleboy / CodeGPT

A CLI written in Go language that writes git commit messages or do a code review brief for you using ChatGPT AI (gpt-4o, gpt-4-turbo, gpt-3.5-turbo model) and automatically installs a git prepare-commit-msg hook.
MIT License
1.15k stars 100 forks source link

Support gpt-4-1106-preview model #135

Closed liminghuang closed 7 months ago

liminghuang commented 7 months ago

I try to use new gpt-4 model, get the messages as below

❯ codegpt commit --preview
Summarize the commit message use gpt-4-1106-preview model
Error: missing model
appleboy commented 7 months ago

I will take it.

appleboy commented 7 months ago

Use https://github.com/appleboy/CodeGPT/releases/tag/v0.7.0 version

appleboy commented 7 months ago

See my config gpt-4-1106-preview

$ codegpt config list
Key                       Value                         
git.diff_unified          1                             
git.exclude_list          [a b]                         
git.template_file                                       
git.template_string                                     
openai.api_key            ****************              
openai.api_version        2023-07-01-preview            
openai.base_url                                         
openai.frequency_penalty  0                             
openai.headers                                          
openai.max_tokens         1000                          
openai.model              gpt-4-1106-preview            
openai.model_name         aide-gpt-35-turbo-16k         
openai.org_id             org-hZn7HMFYJOzjzCWjzcmm0fue  
openai.presence_penalty   0                             
openai.provider           openai                        
openai.proxy                                            
openai.skip_verify        true                          
openai.socks                                            
openai.temperature        0.1                           
openai.timeout            1m                            
openai.top_p              1                             
output.lang               en