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

[v1.10.0 version plan]: Add more AI model and support choose AI model #180

Closed
Zhengqbbb opened this issue Jul 22, 2024 · 4 comments
Closed
Assignees
Labels
enhancement New feature or request next version Plan for next version

Comments

@Zhengqbbb
Copy link
Owner

Zhengqbbb commented Jul 22, 2024

💭 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, 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

@Zhengqbbb Zhengqbbb added the enhancement New feature or request label Jul 22, 2024
@Zhengqbbb Zhengqbbb self-assigned this Jul 22, 2024
@Zhengqbbb Zhengqbbb added the next version Plan for next version label Jul 22, 2024
@terranc
Copy link

terranc commented Sep 7, 2024

太需要这功能呢

@ZedRover
Copy link

ZedRover commented Sep 9, 2024

cy

@Zhengqbbb
Copy link
Owner Author

I have released a next pre-release version 🌟(v1.10.0-beta.1)🌟 for testing.
Plan for the official release on the weekend 🚀.

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
Zhengqbbb added a commit that referenced this issue Sep 28, 2024
#187)

* chore: use pnpm catalog management of dependencies 

link #180
@Zhengqbbb
Copy link
Owner Author

The latest version 🌟(v1.10.0)🌟 should be resolve this issue request
document information:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request next version Plan for next version
Projects
None yet
Development

No branches or pull requests

3 participants