Skip to content

Commit

Permalink
✨ feat(docs): add model selection info
Browse files Browse the repository at this point in the history
- Add information on how to select an OpenAI model【docs(README.md)】
- Update the Chinese version of README to match【docs(README.zh_CN.md)】

📦 build(version): update version

- Increment version from 0.0.7 to 0.0.8【package.json】
  • Loading branch information
Sitoi committed Nov 12, 2024
1 parent 0071958 commit a469c2c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ Use Azure/OpenAI API to review Git changes, generate conventional commit message
In the VSCode settings, locate the "ai-commit" configuration options and configure them as needed:

| Configuration | Type | Default | Required | Notes |
| :----------------- | :----: | :-----: | :------: | :---------------------------------------------------------------------------------: |
| OPENAI_API_KEY | string | None | Yes | [OpenAI token](https://platform.openai.com/account/api-keys) |
| OPENAI_BASE_URL | string | None | No | If using Azure, use: https://{resource}.openai.azure.com/openai/deployments/{model} |
| OPENAI_MODEL | string | gpt-4o | Yes | OpenAI MODEL |
| AZURE_API_VERSION | string | None | No | AZURE_API_VERSION |
| AI_COMMIT_LANGUAGE | string | en | Yes | Supports 19 languages |
| SYSTEM_PROMPT | string | None | No | Custom system prompt |
| Configuration | Type | Default | Required | Notes |
| :----------------- | :----: | :-----: | :------: | :-----------------------------------------------------------------------------------------------------: |
| OPENAI_API_KEY | string | None | Yes | [OpenAI token](https://platform.openai.com/account/api-keys) |
| OPENAI_BASE_URL | string | None | No | If using Azure, use: https://{resource}.openai.azure.com/openai/deployments/{model} |
| OPENAI_MODEL | string | gpt-4o | Yes | OpenAI MODEL,you can select a model from the list by running the `Show Available OpenAI Models` command |
| AZURE_API_VERSION | string | None | No | AZURE_API_VERSION |
| AI_COMMIT_LANGUAGE | string | en | Yes | Supports 19 languages |
| SYSTEM_PROMPT | string | None | No | Custom system prompt |

## ⌨️ Local Development

Expand Down
16 changes: 8 additions & 8 deletions README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@
`VSCode` 设置中,找到 "ai-commit" 配置项,并根据需要进行配置

| 配置 | 类型 | 默认 | 必要 | 备注 |
| :----------------- | :----: | :----: | :--: | :--------------------------------------------------------------------------------: |
| OPENAI_API_KEY | string | None || [OpenAI 令牌](https://platform.openai.com/account/api-keys) |
| OPENAI_BASE_URL | string | None || 如果是 Azure,使用:https://{resource}.openai.azure.com/openai/deployments/{model} |
| OPENAI_MODEL | string | gpt-4o || OpenAI MODEL |
| AZURE_API_VERSION | string | None || AZURE_API_VERSION |
| AI_COMMIT_LANGUAGE | string | en || 支持 19 种语言 |
| SYSTEM_PROMPT | string | None || 自定义系统提示词 |
| 配置 | 类型 | 默认 | 必要 | 备注 |
| :----------------- | :----: | :----: | :--: | :------------------------------------------------------------------------------------: |
| OPENAI_API_KEY | string | None || [OpenAI 令牌](https://platform.openai.com/account/api-keys) |
| OPENAI_BASE_URL | string | None || 如果是 Azure,使用:https://{resource}.openai.azure.com/openai/deployments/{model} |
| OPENAI_MODEL | string | gpt-4o || OpenAI MODEL, 你可以通过运行 `Show Available OpenAI Models` 命令从列表中选择一个模型。 |
| AZURE_API_VERSION | string | None || AZURE_API_VERSION |
| AI_COMMIT_LANGUAGE | string | en || 支持 19 种语言 |
| SYSTEM_PROMPT | string | None || 自定义系统提示词 |

## ⌨️ 本地开发

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ai-commit",
"displayName": "AI Commit",
"description": "Use Azure/OpenAI API to review Git changes, generate conventional commit messages that meet the conventions, simplify the commit process, and keep the commit conventions consistent.",
"version": "0.0.7",
"version": "0.0.8",
"engines": {
"node": ">=16",
"vscode": "^1.77.0"
Expand Down

0 comments on commit a469c2c

Please sign in to comment.