File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ AI-powered Git commit message generator that analyzes your staged changes and ge
44
55## Features
66
7- - Generates commit messages using AI (currently supports GitHub Copilot)
7+ - Generates commit messages using AI (supports OpenAI, OpenRouter, and GitHub Copilot)
88- Interactive prompts for accepting, editing, or canceling commit messages
99- Easy to extend with other AI providers
1010- Built with Go for performance and portability
@@ -37,6 +37,12 @@ Then generate a commit message:
3737lazycommit commit
3838```
3939
40+ You can also run the interactive configuration to set your preferred provider and model:
41+
42+ ``` bash
43+ lazycommit config set
44+ ```
45+
4046For automatic commit without prompting:
4147
4248``` bash
@@ -45,11 +51,20 @@ lazycommit commit -a
4551
4652## Configuration
4753
48- Create a ` .lazycommit ` file in your home directory:
54+ Create a ` .lazycommit.yaml ` file in your home directory or project root :
4955
5056``` yaml
51- provider : copilot
52- api_key : your-copilot-api-key
57+ active_provider : openai
58+ providers :
59+ openai :
60+ api_key : " your-openai-api-key"
61+ model : " gpt-4o"
62+ openrouter :
63+ api_key : " your-openrouter-api-key"
64+ model : " anthropic/claude-3-opus"
65+ copilot :
66+ # No API key needed, it uses the GitHub CLI token
67+ model : " gpt-4o"
5368` ` `
5469
5570## Development
You can’t perform that action at this time.
0 commit comments