Zhengqbbb / cz-git

cz-git | czg 🛠️ DX first and more engineered, lightweight, customizable, standard output format Commitizen adapter and CLI
https://cz-git.qbb.sh
MIT License
1.13k stars 41 forks source link

feat(cz-git,cli): add `aiModel` to support choose OpenAI model #185

Closed Zhengqbbb closed 1 month ago

Zhengqbbb commented 1 month ago

Related ISSUE

180

link: https://github.com/Zhengqbbb/cz-git/issues/153 https://github.com/Zhengqbbb/cz-git/pull/154 https://github.com/Zhengqbbb/cz-git/issues/156

Type Of Change

Description

1. Support more AI models

Current models:

Planned additions:


2. Deprecate and support backward compatibility for the old configuration option aiType

- aiType: 
+ aiModel: 'gpt-3.5-turbo' | 'gpt-4' | 'gpt-4o' | 'gpt-4o-mini' ...

3. CLI add options -M=|--ai-model= and --api-model=

-M=|--model=          Sets the AI model
--api-model=          Setup request OpenAI model   to local (.config/.czrc)

[!NOTE]
If the configuration in the global or project contains the aiModel field, then the ~/.config/.czrc set by --api-model will be overridden.
Priority: -M=|--model= > global or project configure - aiModel > ~/.config/.czrc - apiModel

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cz-git.qbb.sh ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2024 4:02pm
netlify[bot] commented 1 month ago

Deploy Preview for cz-git ready!

Name Link
Latest commit 196c8a1d3e981f14a73b4d8c4161e8d10dbf6d35
Latest deploy log https://app.netlify.com/sites/cz-git/deploys/66f58582b903f10007a60589
Deploy Preview https://deploy-preview-185--cz-git.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.