Skip to content

Commit a61a5da

Browse files
committed
docs: expand API support and update documentation
- Expand support to include Gemini, Groq, and OpenRouter APIs - Add documentation for configuring the Gemini API service Signed-off-by: appleboy <[email protected]>
1 parent 398e246 commit a61a5da

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A CLI written in [Go](https://go.dev) language that writes git commit messages o
1818

1919
## Feature
2020

21-
* Support [Azure OpenAI Service](https://azure.microsoft.com/en-us/products/cognitive-services/openai-service) or [OpenAI API](https://platform.openai.com/docs/api-reference).
21+
* Support [Azure OpenAI Service](https://azure.microsoft.com/en-us/products/cognitive-services/openai-service), [OpenAI API](https://platform.openai.com/docs/api-reference), [Gemini][60], [Groq][30] and [OpenRouter][50].
2222
* Support [conventional commits specification](https://www.conventionalcommits.org/en/v1.0.0/).
2323
* Support Git prepare-commit-msg Hook, see the [Git Hooks documentation](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks).
2424
* Support customize generate diffs with n lines of context, the default is three.
@@ -189,6 +189,20 @@ codegpt config set openai.model meta-llama/llama-3-8b-instruct:free
189189
[52]:https://openrouter.ai/terms#services
190190
[53]:https://openrouter.ai/api/v1/models
191191

192+
### Support [Gemni][60] API Service
193+
194+
Build with the Gemini API, you can see the [Gemini API documentation][61]. Update the `provider` and `api_key` in your config file. Please create an API key from the [Gemini API][62] page.
195+
196+
```sh
197+
codegpt config ser openai.provider gemini
198+
codegpt config set openai.api_key xxxxxxx
199+
codegpt config set openai.model gemini-1.5-flash-latest
200+
```
201+
202+
[60]: https://ai.google.dev/gemini-api
203+
[61]: https://ai.google.dev/gemini-api/docs
204+
[62]: https://aistudio.google.com/app/apikey
205+
192206
For including your app on openrouter.ai rankings and Shows in rankings on openrouter.ai, you can set the `openai.headers` in your config file.
193207

194208
```sh

0 commit comments

Comments
 (0)