Skip to content

Commit b6cd222

Browse files
committed
⚙️ chore (config): use env variable for gemini api key in config
1 parent 6d207e6 commit b6cd222

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ https://github.com/user-attachments/assets/b6e6aa6c-85a8-42b1-994c-fa3ffe80d760
4343
provider_options = {
4444
gemini = {
4545
model = 'gemini-2.0-flash',
46-
api_key = 'YOUR_API_KEY',
46+
api_key = vim.env.GEMINI_API_KEY, -- assuming you have set GEMINI_API_KEY in .zshrc or .bashrc
4747
stream = false,
4848
},
4949
}

lua/commit-ai/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ M.provider_options = {
2323
},
2424
gemini = {
2525
model = 'gemini-2.0-flash',
26-
api_key = 'YOUR_API_KEY',
26+
api_key = vim.env.GEMINI_API_KEY,
2727
stream = false,
2828
},
2929
claude = {

0 commit comments

Comments
 (0)