VS Code extension which helps to generate AI commit messages using ChatGPT.
- 允许用户自定义提示词模板 systemPrompt
You can generate commit message by pressing 'Generate AI commit' button in source control tab:
Tip: You could also generate commit from command pallete by calling 'Generate AI commit' command.
You need Open AI API Key to make this extension work. You can get your API key from OpenAI.
GPT Commit extension contributes the following settings:
gptcommit@li.appearance.delimeter
: Delimeter between commit lines
gptcommit@li.general.generator
: Generator used to create commit messages. Available options: ChatGPTgptcommit@li.general.messageApproveMethod
: Method used to approve generated commit message. Available options: Quick pick, Message file
gptcommit@li.openAI.apiKey
: OpenAI API Key. Needed for generating AI commit messagesgptcommit@li.openAI.gptVersion
: Version of GPT used by OpenAIgptcommit@li.openAI.customEndpoint
: Custom endpoint URL for OpenAI APIgptcommit@li.openAI.temperature
: Controls randomness. Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitivegptcommit@li.openAI.maxTokens
: The maximum number of tokens to generate. Requests can use up to 2048 tokens shared between prompt and completion
- 增加自定义提示词模板配置
- 增加预设2个模板风格
- 优化提示词,使得AI能够更加稳定的出现git commit
- 支持中文
- QuickPick 模式不再弹窗提示,直接进入
- 默认模板增加Summay的处理,对本地修改简单总结
Initial release of GPT Commit
Updated icons
Fixed UX
Added Open AI API Key input prompt
Updated commit formatting. Added new setting
Added new advanced configuration for ChatGPT.
Added new option to accept and edit generated commit via temp message file. (Thanks for help chenweiyi)
Added option to set custom ChatGPT endpoint URL. (Thanks for help aiyogg)
Fixed issue with git on windows (Issue #5)
Added option to select different ChatGPT version (Issue #6)
Set default ChatGPT version to gpt-3.5-turbo-16k
Released under MIT by @dmytrobaida.