Skip to content

Commit 8ca2863

Browse files
committed
Merge branch 'feature-migrate-to-go'
2 parents 558c479 + 1d71bca commit 8ca2863

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff 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:
3737
lazycommit 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+
4046
For 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

lazycommit

-27.3 MB
Binary file not shown.

main

-18.1 MB
Binary file not shown.

0 commit comments

Comments
 (0)