-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
[v1.10.0 version plan]: Add more AI model and support choose AI model #180
Labels
Comments
太需要这功能呢 |
cy |
Zhengqbbb
added a commit
that referenced
this issue
Sep 26, 2024
6 tasks
I have released a next pre-release version 🌟(v1.10.0-beta.1)🌟 for testing. Welcome to try it out! 👀 Let me know if there are still any issues. 🎉 npm install -g czg@next
czg -v # ensure version is v1.10.0-beta.1
czg -h # show help
# Usage
### 1. Use the default `gpt-4o-mini` model
czg ai
### 2. Set specify a model in current session
czg ai -M=gpt-3.5-turbo
### 3. Setup the default model
czg --api-model="gpt-4" See more setup details in https://deploy-preview-185--cz-git.netlify.app/recipes/openai#setup-openai-token |
Zhengqbbb
added a commit
that referenced
this issue
Sep 27, 2024
…els (#185) * Remove AI model `text-davinci-003` and configure field `aiType` * Add configure field `aiModel`: 'gpt-3.5-turbo' | 'gpt-4' | 'gpt-4o' | 'gpt-4o-mini' | string... * (cli): add options `-M=|--ai-model=` and `--api-model=` * The AI Model option only support for the OpenAI API's `/chat/completions` endpoint model now. link #180
The latest version 🌟(v1.10.0)🌟 should be resolve this issue request |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
💭 Describe the feature
ISSUE Links: #153 #154 #156
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, likeollama
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
3. CLI add options
-M=|--ai-model=
and--api-model=
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
The text was updated successfully, but these errors were encountered: