File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Expand file tree Collapse file tree 3 files 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
4
4
5
5
## Features
6
6
7
- - Generates commit messages using AI (currently supports GitHub Copilot)
7
+ - Generates commit messages using AI (supports OpenAI, OpenRouter, and GitHub Copilot)
8
8
- Interactive prompts for accepting, editing, or canceling commit messages
9
9
- Easy to extend with other AI providers
10
10
- Built with Go for performance and portability
@@ -37,6 +37,12 @@ Then generate a commit message:
37
37
lazycommit commit
38
38
```
39
39
40
+ You can also run the interactive configuration to set your preferred provider and model:
41
+
42
+ ``` bash
43
+ lazycommit config set
44
+ ```
45
+
40
46
For automatic commit without prompting:
41
47
42
48
``` bash
@@ -45,11 +51,20 @@ lazycommit commit -a
45
51
46
52
## Configuration
47
53
48
- Create a ` .lazycommit ` file in your home directory:
54
+ Create a ` .lazycommit.yaml ` file in your home directory or project root :
49
55
50
56
``` 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"
53
68
` ` `
54
69
55
70
## Development
You can’t perform that action at this time.
0 commit comments