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:
firstname.lastname@example.org: Delimeter between commit lines
email@example.com: Generator used to create commit messages. Available options: ChatGPT
firstname.lastname@example.orgApproveMethod: Method used to approve generated commit message. Available options: Quick pick, Message file
email@example.comAI.apiKey: OpenAI API Key. Needed for generating AI commit messages
firstname.lastname@example.orgAI.gptVersion: Version of GPT used by OpenAI
email@example.comAI.customEndpoint: Custom endpoint URL for OpenAI API
firstname.lastname@example.orgAI.temperature: Controls randomness. Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive
email@example.comAI.maxTokens: The maximum number of tokens to generate. Requests can use up to 2048 tokens shared between prompt and completion
Initial release of GPT Commit
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