文档: 在README.md中增加baseURL配置项说明
This commit is contained in:
12
README.md
12
README.md
@@ -239,6 +239,18 @@ aicommits config set type=conventional
|
||||
aicommits config set type=
|
||||
```
|
||||
|
||||
#### baseURL
|
||||
|
||||
默认值:`https://api.openai.com`
|
||||
|
||||
用于设置 OpenAI API 的基础 URL。如果您使用的是 OpenAI 的代理服务或其他兼容的 API 端点,可以通过此选项进行配置:
|
||||
|
||||
```sh
|
||||
aicommits config set baseURL=https://your-proxy-url.com
|
||||
```
|
||||
|
||||
这对于使用自定义 API 端点或代理服务的用户非常有用。
|
||||
|
||||
## 工作原理
|
||||
|
||||
这个 CLI 工具运行 `git diff` 来获取您所有的最新代码更改,将它们发送到 OpenAI 的 GPT-3,然后返回 AI 生成的提交消息。
|
||||
|
||||
Reference in New Issue
Block a user