cz-git
cz-git copied to clipboard
add option to set custom openai model
Related ISSUE
https://github.com/Zhengqbbb/cz-git/issues/153
Type Of Change
- [x] ✨ New feature (non-breaking change which adds functionality)
How do I test this? I tried to build but now I don't know how to run cz-git
or czg ai
Deploy request for cz-git pending review.
Visit the deploys page to approve it
Name | Link |
---|---|
Latest commit | 7a72153ee74e2b39b5883f42a523c86953fe721c |
How do I test this? I tried to build but now I don't know how to run
cz-git
orczg ai
- Run command
pnpm build
# or
pnpm dev
- Run command to debug or test result
-
cz-git
just plugin turn on the optionuseAI
. Then run commitizen'scz
command -
czg
you can usepnpm x
orpnpm czg
to run execczg
exec file
https://github.com/Zhengqbbb/cz-git/assets/40693636/1d3eaa69-3a15-4ddc-84b9-37ef2031b760
If you ready just tell me. I will release a npm pre-verison-package 😉
@Zhengqbbb thanks for the video!
Can you check my last commit and debug it, please? I have the model set, but it still doesn't work
$ cat ~/.config/.czrc
{"openAIToken":"sk-xxx","openAIModel":"gpt-4-1106-preview"}
$ pnpm x ai -a czg
> [email protected] x /Users/gianpaj/tmp/cz-git
> czg "ai" "-a" "czg"
[email protected]
? Select the type of change that you're committing: feat: A new feature
ℹ Generating your AI commit subject...
{ aiModel: undefined }
Can you check my last commit and debut it, please? I have the model setting in, but still doesn't work
- {"openAIToken":"sk-xxx","openAIModel":"gpt-4-1106-preview"}
+ {"openAIToken":"sk-xxx","aiModel":"gpt-4-1106-preview"}