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
feat(func): support for function calling in OpenAI API #149
Add support for function calling in OpenAI API and enable parallel function calls in select models
Add support for function calling in OpenAI API
Add support for parallel function calls in certain models
Allow function calling in the following models: gpt-4, gpt-4-turbo-preview, gpt-4-0125-preview, gpt-4-1106-preview, gpt-4-0613, gpt-3.5-turbo, gpt-3.5-turbo-0125, gpt-3.5-turbo-1106
Add a check for the model version to allow function calling
Change the client struct to include a new field for the model version
Update the allowFuncCall function to check the model version and return true if the model supports function calling
Add support for function calling in OpenAI API and enable parallel function calls in select models
allowFuncCall
function to check the model version and return true if the model supports function calling