Skip to content

Commit 2c6f5ec

Browse files
committed
✨ 新機能(README.md): Google Geminiモデルのサポートを追加しました
README.mdファイルに、Google Geminiモデルのサポートに関する情報を追加しました。これにより、ユーザーはOpenAIライブラリを通じてGeminiモデルを利用できるようになります。 ✨ feat(README.md): Add support for Google Gemini models Added information to the README.md file about the support for Google Gemini models. This allows users to utilize Gemini models through the OpenAI library.
1 parent 7891a6d commit 2c6f5ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ This repository is forked from the original [di-sukharev/opencommit](https://git
2525
Enhancing functionality adopting early some pull requests I need.
2626

2727
Added features
28+
* Support [Google Gemini Models via the OpenAI Library](https://developers.googleblog.com/en/gemini-is-now-accessible-from-the-openai-library/)
2829
* Support [Azure OpenAI Service #167](https://github.com/di-sukharev/opencommit/pull/167)
2930
* Support [push config #220](https://github.com/di-sukharev/opencommit/pull/220)
3031
* Add translations to English commit messages
@@ -138,12 +139,13 @@ Create a `.env` file and add OpenCommit config variables there like this:
138139
```env
139140
OCO_OPENAI_API_KEY=<your OpenAI API token>
140141
OCO_OPENAI_MAX_TOKENS=<max response tokens from OpenAI API>
141-
OCO_OPENAI_BASE_PATH=<may be used to set proxy path to OpenAI api>
142+
OCO_OPENAI_BASE_PATH=<may be used to set proxy path to OpenAI API. Required for Azure OpenAI. example: 'https://YourInstanceName.openai.azure.com/'>
142143
OCO_DESCRIPTION=<postface a message with ~3 sentences description>
143144
OCO_EMOJI=<add GitMoji>
144-
OCO_MODEL=<either gpt-3.5-turbo or gpt-4>
145+
OCO_MODEL=<either gpt-3.5-turbo, gpt-4, gemini-2.0-flash-exp or etc.. For Azure, set the deployment name>
145146
OCO_LANGUAGE=<locale, scroll to the bottom to see options>
146147
OCO_MESSAGE_TEMPLATE_PLACEHOLDER=<message template placeholder, example: '$msg'>
148+
OCO_OPENAI_API_TYPE=<'openai', 'azure' or 'google'. The default is 'openai' >
147149
```
148150

149151
### Global config for all repos

0 commit comments

Comments
 (0)