HelloGitHub icon indicating copy to clipboard operation
HelloGitHub copied to clipboard

【开源自荐】ai-commit - 使用 AI 自动生成 conventional 格式的 git 提交信息

Open guanguans opened this issue 1 year ago • 1 comments

推荐项目

  • 项目地址:https://github.com/guanguans/ai-commit

  • 类别:PHP

  • 项目标题:使用 AI 自动生成 conventional 格式的 git 提交信息

  • 项目描述:ai-commit 是一个根据 git diff 的内容通过 AI 自动生成规范的 git 提交信息的工具。

  • 亮点:

    • 支持多驱动生成器自动生成提交信息(目前支持 OpenAI 的 gpt-3.5-turbo 、gpt-3.5-turbo-0301、text-davinci-003、text-davinci-002 模型)
    • 支持生成多条待选的提交信息
    • 支持自定义生成待选提交信息的数量
    • 支持以编辑模式提交选中的信息(编辑提交的时候方便自主修正生成的信息)
    • 支持自定义生成提交信息的提示(通过自定义提示可更换生成的语言、风格等)
    • 支持生成提交信息失败重试功能
  • 示例代码:

  • 截图:

ai-commit

ai-commit-vhs

  • 后续更新计划:
    • 支持更多的 AI 驱动生成器(例如百度的文心一言)

guanguans avatar Mar 06 '23 07:03 guanguans