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.16k stars 100 forks source link

feat: refactor completion function and add CreateFunctionCall function #100

Closed appleboy closed 10 months ago

appleboy commented 10 months ago

fix #96 fix https://github.com/appleboy/CodeGPT/issues/91

codecov-commenter commented 10 months ago

Codecov Report

Merging #100 (9279018) into main (2fd957e) will decrease coverage by 0.44%. The diff coverage is 18.18%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main     #100      +/-   ##
==========================================
- Coverage   24.39%   23.96%   -0.44%     
==========================================
  Files           7        8       +1     
  Lines         291      313      +22     
==========================================
+ Hits           71       75       +4     
- Misses        215      232      +17     
- Partials        5        6       +1     
Files Changed Coverage Δ
openai/openai.go 0.00% <0.00%> (ø)
openai/func.go 66.66% <66.66%> (ø)