czg ai
Let the AI generate your git commit message subject (short description)
Synopsis
czg ai
- Turn on OpenAI generate subject mode
Preparation
Get your OpenAI API Key: https://platform.openai.com/account/api-keys
sh
czg --api-key=sk-xxxxx
czg --api-key=sk-xxxxx
Options
Shorthand, Name | Description |
---|---|
-N=<number> --ai-num=<number> | Sets AI return multiple subjects and Turn on choose mode |
-M=<model> --ai-model=<model> | Sets AI model in this session |
--no-ai | Turn off AI prompt mode in this session |
--api-key=<token> | Setup OpenAI API secret key to local (.config/.czrc) |
--api-model=<model> | Setup request OpenAI API model to local (.config/.czrc) |
--api-proxy=<proxy_URL> | Setup request OpenAI API proxy to local (.config/.czrc) e.g: 1. npx czg --api-proxy="socks5://127.0.0.1:1080" 2. npx czg --api-proxy="http://127.0.0.1:1080" |
--api-endpoint=<url> | Setup request OpenAI API endpoint to local Default "https://api.openai.com/v1" |
--unset-proxy | Unset request API proxy on local configure |
TIP
more information and usage ⇒ see the recipes