Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Sep 27, 2024

Conversation

Zhengqbbb
Copy link
Owner

Related ISSUE

#180

link: #153 #154 #156

Type Of Change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 📝 Document (This change requires a documentation update)
  • 🎨 Theme style (Theme style beautification)
  • ⚠ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🔨 Workflow (Workflow changes)

Description

1. Support more AI models

Current models:

  • text-davinci-003
  • gpt-3.5-turbo (default)

Planned additions:

  • gpt-4
  • gpt-4o
  • gpt-4o-mini (default)
  • string (can be customized, like ollama and more models compatible with OpenAI API format)
    e.g: GitHub model and local model (Ollama)

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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
link #180
Copy link

vercel bot commented Sep 26, 2024

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

Copy link

netlify bot commented Sep 26, 2024

Deploy Preview for cz-git ready!

Name Link
🔨 Latest commit 196c8a1
🔍 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.

@Zhengqbbb Zhengqbbb merged commit 241577b into main Sep 27, 2024
12 checks passed
@Zhengqbbb Zhengqbbb deleted the feat/aiModel_180 branch September 27, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant