0.1.10 • Published 5 months ago
ai-commit-log v0.1.10
clog-ai
Example
示例可参照本项目的 commit log
Installation
npm install -g ai-commit-log
Usage
clog-ai init
then edit config file:
{
"language": "zh or en",
"azure_api_key": "xxxxx",
"azure_deployment_id": "xxxx",
"azure_base_url": "https://xxxxxxx.openai.azure.com",
"azure_model": "gpt-3.5-turbo-16k",
"azure_api_version": "2023-07-01-preview",
}
Run
git add . # git add files
clog-ai # generate commit log only
clog-ai commit # generate commit log and git commit
Azure api
首先免费申请 openai 服务,然后部署 gpt-3.5-turbo-16k 模型,最终将相关的配置写入配置文件